Package io.quarkus.proxy.runtime
Class ProxyConfigurationRegistryImpl
java.lang.Object
io.quarkus.proxy.runtime.ProxyConfigurationRegistryImpl
- All Implemented Interfaces:
ProxyConfigurationRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionProxyConfigurationRegistryImpl(Map<String, ProxyConfiguration> configs, Optional<ProxyConfiguration> defaultConfig) -
Method Summary
Modifier and TypeMethodDescriptionIf the givennameis not empty, returns the named proxy configuration if it exists and throws an exception if it doesn't exist.
-
Constructor Details
-
ProxyConfigurationRegistryImpl
ProxyConfigurationRegistryImpl(Map<String, ProxyConfiguration> configs, Optional<ProxyConfiguration> defaultConfig)
-
-
Method Details
-
get
Description copied from interface:ProxyConfigurationRegistryIf the givennameis not empty, returns the named proxy configuration if it exists and throws an exception if it doesn't exist. If the givennameis the special valuenone, returns a special result where the host and port arenone:0, type isHTTPand other methods return an empty result.If the given
nameis empty, returns the default proxy configuration if it exists and returns an empty result if it doesn't exist.- Specified by:
getin interfaceProxyConfigurationRegistry- Parameters:
name- the name- Returns:
- the configuration, may be empty
-