org.apache.camel.component.jms
Class DefaultJmsKeyFormatStrategy

java.lang.Object
  extended by 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 containg package names that is common by Java frameworks.

Version:
$Revision: 14447 $

Constructor Summary
DefaultJmsKeyFormatStrategy()
           
 
Method Summary
 String decodeKey(String key)
          Decodes the key after its received from a Message message.
 String encodeKey(String key)
          Encodes the key before its sent as a Message message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJmsKeyFormatStrategy

public DefaultJmsKeyFormatStrategy()
Method Detail

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


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.