Class EndpointsClowderPropertyHandler
java.lang.Object
com.redhat.cloud.common.clowder.configsource.handlers.ClowderPropertyHandler
com.redhat.cloud.common.clowder.configsource.handlers.EndpointsClowderPropertyHandler
- Direct Known Subclasses:
OptionalEndpointsClowderPropertyHandler,OptionalPrivateEndpointsClowderPropertyHandler,PrivateEndpointsClowderPropertyHandler
-
Field Summary
Fields inherited from class com.redhat.cloud.common.clowder.configsource.handlers.ClowderPropertyHandler
clowderConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringhandle(String property, ClowderConfigSource configSource) booleanprotected StringprocessEndpoints(String configKey, ClowderConfigSource configSource, List<? extends EndpointConfig> endpoints, String endpointType) Attempts to find the corresponding value for the provided configuration key.Methods inherited from class com.redhat.cloud.common.clowder.configsource.handlers.ClowderPropertyHandler
provides
-
Constructor Details
-
EndpointsClowderPropertyHandler
-
-
Method Details
-
handles
- Specified by:
handlesin classClowderPropertyHandler
-
handle
- Specified by:
handlein classClowderPropertyHandler
-
getPropertyEndpointKey
-
processEndpoints
protected String processEndpoints(String configKey, ClowderConfigSource configSource, List<? extends EndpointConfig> endpoints, String endpointType) Attempts to find the corresponding value for the provided configuration key. If the URL parameter has been requested, then depending on whether the endpoint has a TLS port or not, a full URL including the protocol is returned. For the rest of parameters it returns the corresponding value.- Parameters:
configKey- the configuration key specified in the "application.properties" file.endpointType- the type of the endpoint which the function will process. Used mainly for error and log messages.- Returns:
- a full URL including the protocol in the case of requesting an endpoint's URL parameter. Regular values for the rest of the parameters.
-