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

public class EndpointsClowderPropertyHandler extends ClowderPropertyHandler
  • Constructor Details

    • EndpointsClowderPropertyHandler

      public EndpointsClowderPropertyHandler(ClowderConfig clowderConfig)
  • Method Details

    • handles

      public boolean handles(String property)
      Specified by:
      handles in class ClowderPropertyHandler
    • handle

      public String handle(String property, ClowderConfigSource configSource)
      Specified by:
      handle in class ClowderPropertyHandler
    • getPropertyEndpointKey

      protected String 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.