test_class.declarator: gatewayHttpTestConfig
test_class.modifier: private static
test_class.original_string: private static Config gatewayHttpTestConfig;
test_class.type: Config
test_class.var_name: gatewayHttpTestConfig
test_class.declarator: softly = new JUnitSoftAssertions()
test_class.modifier: @Rule
      public final
test_class.original_string: @Rule
      public final JUnitSoftAssertions softly = new JUnitSoftAssertions();
test_class.type: JUnitSoftAssertions
test_class.var_name: softly
test_class.file: services/gateway/util/src/test/java/org/eclipse/ditto/services/gateway/util/config/endpoints/GatewayHttpConfigTest.java
test_class.identifier: GatewayHttpConfigTest
test_case.body: @Test
      public void tryToGetInstanceWithUnknownSchemaVersions() {
          final int unknownVersionNumber = -1;
          final Collection<Integer> knownSchemaVersions =
                  List.of(JsonSchemaVersion.V_1.toInt(), JsonSchemaVersion.V_2.toInt());
          final Collection<Integer> allSchemaVersions = new ArrayList<>(knownSchemaVersions);
          allSchemaVersions.add(unknownVersionNumber);
          final String configPath = "http." + HttpConfig.GatewayHttpConfigValue.SCHEMA_VERSIONS.getConfigPath();
          final Config config = ConfigFactory.parseMap(Maps.newHashMap(configPath, allSchemaVersions));
  
          assertThatExceptionOfType(DittoConfigError.class)
                  .isThrownBy(() -> GatewayHttpConfig.of(config))
                  .withMessage("Schema version <%s> is not supported!", unknownVersionNumber)
                  .withNoCause();
      }
test_case.class_method_signature: GatewayHttpConfigTest.tryToGetInstanceWithUnknownSchemaVersions()
test_case.full_signature: @Test public void tryToGetInstanceWithUnknownSchemaVersions()
test_case.identifier: tryToGetInstanceWithUnknownSchemaVersions
test_case.invocations: of toInt toInt add getConfigPath parseMap newHashMap withNoCause withMessage isThrownBy assertThatExceptionOfType of
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void tryToGetInstanceWithUnknownSchemaVersions()
focal_class.declarator: hostname
focal_class.modifier: private final
focal_class.original_string: private final String hostname;
focal_class.type: String
focal_class.var_name: hostname
focal_class.declarator: port
focal_class.modifier: private final
focal_class.original_string: private final int port;
focal_class.type: int
focal_class.var_name: port
focal_class.declarator: schemaVersions
focal_class.modifier: private final
focal_class.original_string: private final Set<JsonSchemaVersion> schemaVersions;
focal_class.type: Set<JsonSchemaVersion>
focal_class.var_name: schemaVersions
focal_class.declarator: forceHttps
focal_class.modifier: private final
focal_class.original_string: private final boolean forceHttps;
focal_class.type: boolean
focal_class.var_name: forceHttps
focal_class.declarator: redirectToHttps
focal_class.modifier: private final
focal_class.original_string: private final boolean redirectToHttps;
focal_class.type: boolean
focal_class.var_name: redirectToHttps
focal_class.declarator: redirectToHttpsBlocklistPattern
focal_class.modifier: private final
focal_class.original_string: private final Pattern redirectToHttpsBlocklistPattern;
focal_class.type: Pattern
focal_class.var_name: redirectToHttpsBlocklistPattern
focal_class.declarator: enableCors
focal_class.modifier: private final
focal_class.original_string: private final boolean enableCors;
focal_class.type: boolean
focal_class.var_name: enableCors
focal_class.declarator: requestTimeout
focal_class.modifier: private final
focal_class.original_string: private final Duration requestTimeout;
focal_class.type: Duration
focal_class.var_name: requestTimeout
focal_class.declarator: actorPropsFactoryFullQualifiedClassname
focal_class.modifier: private final
focal_class.original_string: private final String actorPropsFactoryFullQualifiedClassname;
focal_class.type: String
focal_class.var_name: actorPropsFactoryFullQualifiedClassname
focal_class.declarator: queryParamsAsHeaders
focal_class.modifier: private final
focal_class.original_string: private final Set<HeaderDefinition> queryParamsAsHeaders;
focal_class.type: Set<HeaderDefinition>
focal_class.var_name: queryParamsAsHeaders
focal_class.declarator: additionalAcceptedMediaTypes
focal_class.modifier: private final
focal_class.original_string: private final Set<String> additionalAcceptedMediaTypes;
focal_class.type: Set<String>
focal_class.var_name: additionalAcceptedMediaTypes
focal_class.declarator: coordinatedShutdownTimeout
focal_class.modifier: private final
focal_class.original_string: private final Duration coordinatedShutdownTimeout;
focal_class.type: Duration
focal_class.var_name: coordinatedShutdownTimeout
focal_class.file: services/gateway/util/src/main/java/org/eclipse/ditto/services/gateway/util/config/endpoints/GatewayHttpConfig.java
focal_class.identifier: GatewayHttpConfig
focal_class.interfaces: implements HttpConfig
focal_class.class_method_signature: GatewayHttpConfig.GatewayHttpConfig(final DefaultHttpConfig basicHttpConfig, final ScopedConfig scopedConfig)
focal_class.full_signature: private  GatewayHttpConfig(final DefaultHttpConfig basicHttpConfig, final ScopedConfig scopedConfig)
focal_class.identifier: GatewayHttpConfig
focal_class.modifiers: private
focal_class.parameters: (final DefaultHttpConfig basicHttpConfig, final ScopedConfig scopedConfig)
focal_class.signature:  GatewayHttpConfig(final DefaultHttpConfig basicHttpConfig, final ScopedConfig scopedConfig)
focal_class.class_method_signature: GatewayHttpConfig.getJsonSchemaVersions(final Config httpScopedConfig)
focal_class.full_signature: private static Set<JsonSchemaVersion> getJsonSchemaVersions(final Config httpScopedConfig)
focal_class.identifier: getJsonSchemaVersions
focal_class.modifiers: private static
focal_class.parameters: (final Config httpScopedConfig)
focal_class.return: Set<JsonSchemaVersion>
focal_class.signature: Set<JsonSchemaVersion> getJsonSchemaVersions(final Config httpScopedConfig)
focal_class.class_method_signature: GatewayHttpConfig.tryToCreateBlocklistPattern(final Config httpScopedConfig)
focal_class.full_signature: private static Pattern tryToCreateBlocklistPattern(final Config httpScopedConfig)
focal_class.identifier: tryToCreateBlocklistPattern
focal_class.modifiers: private static
focal_class.parameters: (final Config httpScopedConfig)
focal_class.return: Pattern
focal_class.signature: Pattern tryToCreateBlocklistPattern(final Config httpScopedConfig)
focal_class.class_method_signature: GatewayHttpConfig.createBlocklistPattern(final Config httpScopedConfig)
focal_class.full_signature: private static Pattern createBlocklistPattern(final Config httpScopedConfig)
focal_class.identifier: createBlocklistPattern
focal_class.modifiers: private static
focal_class.parameters: (final Config httpScopedConfig)
focal_class.return: Pattern
focal_class.signature: Pattern createBlocklistPattern(final Config httpScopedConfig)
focal_class.class_method_signature: GatewayHttpConfig.getQueryParameterNamesAsHeaderDefinitions(final Config scopedConfig)
focal_class.full_signature: private static Set<HeaderDefinition> getQueryParameterNamesAsHeaderDefinitions(final Config scopedConfig)
focal_class.identifier: getQueryParameterNamesAsHeaderDefinitions
focal_class.modifiers: private static
focal_class.parameters: (final Config scopedConfig)
focal_class.return: Set<HeaderDefinition>
focal_class.signature: Set<HeaderDefinition> getQueryParameterNamesAsHeaderDefinitions(final Config scopedConfig)
focal_class.class_method_signature: GatewayHttpConfig.throwConfigErrorIfHeaderKeysUnknown(final Set<String> unknownHeaderKeys)
focal_class.full_signature: private static void throwConfigErrorIfHeaderKeysUnknown(final Set<String> unknownHeaderKeys)
focal_class.identifier: throwConfigErrorIfHeaderKeysUnknown
focal_class.modifiers: private static
focal_class.parameters: (final Set<String> unknownHeaderKeys)
focal_class.return: void
focal_class.signature: void throwConfigErrorIfHeaderKeysUnknown(final Set<String> unknownHeaderKeys)
focal_class.class_method_signature: GatewayHttpConfig.of(final Config config)
focal_class.full_signature: public static GatewayHttpConfig of(final Config config)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final Config config)
focal_class.return: GatewayHttpConfig
focal_class.signature: GatewayHttpConfig of(final Config config)
focal_class.class_method_signature: GatewayHttpConfig.getHostname()
focal_class.full_signature: @Override public String getHostname()
focal_class.identifier: getHostname
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getHostname()
focal_class.class_method_signature: GatewayHttpConfig.getPort()
focal_class.full_signature: @Override public int getPort()
focal_class.identifier: getPort
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPort()
focal_class.class_method_signature: GatewayHttpConfig.getCoordinatedShutdownTimeout()
focal_class.full_signature: @Override public Duration getCoordinatedShutdownTimeout()
focal_class.identifier: getCoordinatedShutdownTimeout
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Duration
focal_class.signature: Duration getCoordinatedShutdownTimeout()
focal_class.class_method_signature: GatewayHttpConfig.getSupportedSchemaVersions()
focal_class.full_signature: @Override public Set<JsonSchemaVersion> getSupportedSchemaVersions()
focal_class.identifier: getSupportedSchemaVersions
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<JsonSchemaVersion>
focal_class.signature: Set<JsonSchemaVersion> getSupportedSchemaVersions()
focal_class.class_method_signature: GatewayHttpConfig.isForceHttps()
focal_class.full_signature: @Override public boolean isForceHttps()
focal_class.identifier: isForceHttps
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isForceHttps()
focal_class.class_method_signature: GatewayHttpConfig.isRedirectToHttps()
focal_class.full_signature: @Override public boolean isRedirectToHttps()
focal_class.identifier: isRedirectToHttps
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRedirectToHttps()
focal_class.class_method_signature: GatewayHttpConfig.getRedirectToHttpsBlocklistPattern()
focal_class.full_signature: @Override public Pattern getRedirectToHttpsBlocklistPattern()
focal_class.identifier: getRedirectToHttpsBlocklistPattern
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Pattern
focal_class.signature: Pattern getRedirectToHttpsBlocklistPattern()
focal_class.class_method_signature: GatewayHttpConfig.isEnableCors()
focal_class.full_signature: @Override public boolean isEnableCors()
focal_class.identifier: isEnableCors
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEnableCors()
focal_class.class_method_signature: GatewayHttpConfig.getRequestTimeout()
focal_class.full_signature: @Override public Duration getRequestTimeout()
focal_class.identifier: getRequestTimeout
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Duration
focal_class.signature: Duration getRequestTimeout()
focal_class.class_method_signature: GatewayHttpConfig.getActorPropsFactoryFullQualifiedClassname()
focal_class.full_signature: @Override public String getActorPropsFactoryFullQualifiedClassname()
focal_class.identifier: getActorPropsFactoryFullQualifiedClassname
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getActorPropsFactoryFullQualifiedClassname()
focal_class.class_method_signature: GatewayHttpConfig.getQueryParametersAsHeaders()
focal_class.full_signature: @Override public Set<HeaderDefinition> getQueryParametersAsHeaders()
focal_class.identifier: getQueryParametersAsHeaders
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<HeaderDefinition>
focal_class.signature: Set<HeaderDefinition> getQueryParametersAsHeaders()
focal_class.class_method_signature: GatewayHttpConfig.getAdditionalAcceptedMediaTypes()
focal_class.full_signature: @Override public Set<String> getAdditionalAcceptedMediaTypes()
focal_class.identifier: getAdditionalAcceptedMediaTypes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> getAdditionalAcceptedMediaTypes()
focal_class.class_method_signature: GatewayHttpConfig.equals(final Object o)
focal_class.full_signature: @SuppressWarnings("OverlyComplexMethod") @Override public boolean equals(final Object o)
focal_class.identifier: equals
focal_class.modifiers: @SuppressWarnings("OverlyComplexMethod") @Override public
focal_class.parameters: (final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object o)
focal_class.class_method_signature: GatewayHttpConfig.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: GatewayHttpConfig.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public static GatewayHttpConfig of(final Config config) {
          final DefaultHttpConfig basicHttpConfig = DefaultHttpConfig.of(config);
  
          return new GatewayHttpConfig(basicHttpConfig,
                  ConfigWithFallback.newInstance(config, basicHttpConfig.getConfigPath(),
                          GatewayHttpConfigValue.values()));
      }
focal_method.class_method_signature: GatewayHttpConfig.of(final Config config)
focal_method.full_signature: public static GatewayHttpConfig of(final Config config)
focal_method.identifier: of
focal_method.invocations: of newInstance getConfigPath values
focal_method.modifiers: public static
focal_method.parameters: (final Config config)
focal_method.return: GatewayHttpConfig
focal_method.signature: GatewayHttpConfig of(final Config config)