Class DynamicDestinationNameResolver
- java.lang.Object
-
- com.consol.citrus.jms.endpoint.resolver.DynamicDestinationNameResolver
-
- All Implemented Interfaces:
EndpointUriResolver
public class DynamicDestinationNameResolver extends Object implements EndpointUriResolver
- Since:
- 2.7
- Author:
- Christoph Deppisch
-
-
Field Summary
Fields Modifier and Type Field Description static StringDESTINATION_HEADER_NAMEStatic header entry name specifying the dynamic destination name-
Fields inherited from interface com.consol.citrus.endpoint.resolver.EndpointUriResolver
ENDPOINT_URI_HEADER_NAME, QUERY_PARAM_HEADER_NAME, REQUEST_PATH_HEADER_NAME
-
-
Constructor Summary
Constructors Constructor Description DynamicDestinationNameResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultDestinationName()Gets the defaultDestinationName.StringresolveEndpointUri(Message message, String defaultName)Get the endpoint uri according to message header entry with fallback default uri.voidsetDefaultDestinationName(String defaultDestinationName)Sets the defaultDestinationName.
-
-
-
Field Detail
-
DESTINATION_HEADER_NAME
public static final String DESTINATION_HEADER_NAME
Static header entry name specifying the dynamic destination name- See Also:
- Constant Field Values
-
-
Method Detail
-
resolveEndpointUri
public String resolveEndpointUri(Message message, String defaultName)
Get the endpoint uri according to message header entry with fallback default uri.- Specified by:
resolveEndpointUriin interfaceEndpointUriResolver
-
getDefaultDestinationName
public String getDefaultDestinationName()
Gets the defaultDestinationName.- Returns:
-
setDefaultDestinationName
public void setDefaultDestinationName(String defaultDestinationName)
Sets the defaultDestinationName.- Parameters:
defaultDestinationName-
-
-