Class DynamicEndpointUriResolver

java.lang.Object
org.citrusframework.endpoint.resolver.DynamicEndpointUriResolver
All Implemented Interfaces:
EndpointUriResolver

public class DynamicEndpointUriResolver extends Object implements EndpointUriResolver
Endpoint uri resolver working on message headers. Resolver is searching for a specific header entry which holds the actual target endpoint uri.
Since:
1.4
  • Constructor Details

    • DynamicEndpointUriResolver

      public DynamicEndpointUriResolver()
  • Method Details

    • resolveEndpointUri

      public String resolveEndpointUri(Message message, String defaultUri)
      Get the endpoint uri according to message header entry with fallback default uri.
      Specified by:
      resolveEndpointUri in interface EndpointUriResolver
    • setDefaultEndpointUri

      public void setDefaultEndpointUri(String defaultEndpointUri)
      Sets the default fallback endpoint uri.
      Parameters:
      defaultEndpointUri - the defaultUri to set