org.apache.camel.component.jms
Class PassThroughJmsKeyFormatStrategy
java.lang.Object
org.apache.camel.component.jms.PassThroughJmsKeyFormatStrategy
- All Implemented Interfaces:
- JmsKeyFormatStrategy
public class PassThroughJmsKeyFormatStrategy
- extends Object
- implements JmsKeyFormatStrategy
A strategy that does not do any encoding or decoding, eg. the keys is passed through as is.
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassThroughJmsKeyFormatStrategy
public PassThroughJmsKeyFormatStrategy()
encodeKey
public String encodeKey(String key)
- Description copied from interface:
JmsKeyFormatStrategy
- Encodes the key before its sent as a
Message
message.
- Specified by:
encodeKey
in interface JmsKeyFormatStrategy
- Parameters:
key
- the original key
- Returns:
- the encoded key
decodeKey
public String decodeKey(String key)
- Description copied from interface:
JmsKeyFormatStrategy
- Decodes the key after its received from a
Message
message.
- Specified by:
decodeKey
in interface JmsKeyFormatStrategy
- Parameters:
key
- the encoded key
- Returns:
- the decoded key as the original key
Apache Camel