Package org.apache.camel.component.jms
Class DefaultJmsKeyFormatStrategy
- java.lang.Object
-
- org.apache.camel.component.jms.DefaultJmsKeyFormatStrategy
-
- All Implemented Interfaces:
JmsKeyFormatStrategy
public class DefaultJmsKeyFormatStrategy extends Object implements JmsKeyFormatStrategy
Default strategy that handles dots and hyphens. This can be used for sending keys containing package names that is common by Java frameworks.
-
-
Constructor Summary
Constructors Constructor Description DefaultJmsKeyFormatStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdecodeKey(String key)Decodes the key after its received from aMessagemessage.StringencodeKey(String key)Encodes the key before its sent as aMessagemessage.
-
-
-
Method Detail
-
encodeKey
public String encodeKey(String key)
Description copied from interface:JmsKeyFormatStrategyEncodes the key before its sent as aMessagemessage.- Specified by:
encodeKeyin interfaceJmsKeyFormatStrategy- Parameters:
key- the original key- Returns:
- the encoded key
-
decodeKey
public String decodeKey(String key)
Description copied from interface:JmsKeyFormatStrategyDecodes the key after its received from aMessagemessage.- Specified by:
decodeKeyin interfaceJmsKeyFormatStrategy- Parameters:
key- the encoded key- Returns:
- the decoded key as the original key
-
-