public final class TextMessageTranslator extends MessageTypeTranslatorImp
Translates between AdaptrisMessage
and javax.jms.TextMessages
. Assumes default platform encoding.
In the adapter configuration file this class is aliased as text-message-translator which is the preferred alternative to the fully qualified classname when building your configuration.
In the adapter configuration file this class is aliased as text-message-translator which is the preferred alternative to the fully qualified classname when building your configuration.
helper, log, session
Constructor and Description |
---|
TextMessageTranslator() |
Modifier and Type | Method and Description |
---|---|
javax.jms.Message |
translate(AdaptrisMessage msg)
Translates an
AdaptrisMessage into a TextMessage
using the default platform character encoding. |
AdaptrisMessage |
translate(javax.jms.Message msg)
Translates a
TextMessage into an AdaptrisMessage
using the default platform character encoding. |
copyConfiguration, currentMessageFactory, currentSession, getMetadataConverters, getMetadataFilter, getMoveJmsHeaders, getReportAllErrors, metadataConverters, metadataFilter, moveJmsHeaders, registerMessageFactory, registerSession, reportAllErrors, setMetadataConverters, setMetadataFilter, setMoveJmsHeaders, setReportAllErrors, start, stop, translate, withMetadataConverters, withMetadataConverters, withMetadataFilter, withMoveJmsHeaders, withReportAllErrors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, init, start, stop
public javax.jms.Message translate(AdaptrisMessage msg) throws javax.jms.JMSException
Translates an AdaptrisMessage
into a TextMessage
using the default platform character encoding.
msg
- the AdaptrisMessage
to translateTextMessage
javax.jms.JMSException
public AdaptrisMessage translate(javax.jms.Message msg) throws javax.jms.JMSException
Translates a TextMessage
into an AdaptrisMessage
using the default platform character encoding.
msg
- the TextMessage
to translateAdaptrisMessage
javax.jms.JMSException