org.apache.camel.component.sjms.jms
Class DefaultJmsKeyFormatStrategy
java.lang.Object
org.apache.camel.component.sjms.jms.DefaultJmsKeyFormatStrategy
- All Implemented Interfaces:
- KeyFormatStrategy
public class DefaultJmsKeyFormatStrategy
- extends Object
- implements KeyFormatStrategy
Default strategy that handles dots and hyphens.
This can be used for sending keys contain package names that is common by
Java frameworks.
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultJmsKeyFormatStrategy
public DefaultJmsKeyFormatStrategy()
encodeKey
public String encodeKey(String key)
- Description copied from interface:
KeyFormatStrategy
- Encodes the key before its sent as a
Message
message.
- Specified by:
encodeKey
in interface KeyFormatStrategy
- Parameters:
key
- the original key
- Returns:
- the encoded key
decodeKey
public String decodeKey(String key)
- Description copied from interface:
KeyFormatStrategy
- Decodes the key after its received from a
Message
message.
- Specified by:
decodeKey
in interface KeyFormatStrategy
- Parameters:
key
- the encoded key
- Returns:
- the decoded key as the original key
Apache Camel