org.mule.providers.oracle.jms
Class OracleJmsMessageAdapter
java.lang.Object
org.mule.providers.AbstractMessageAdapter
org.mule.providers.jms.JmsMessageAdapter
org.mule.providers.oracle.jms.OracleJmsMessageAdapter
- All Implemented Interfaces:
- Serializable, ThreadSafeAccess, UMOMessageAdapter
- public class OracleJmsMessageAdapter
- extends JmsMessageAdapter
If the message payload is XML, returns the XML as a string. If the message payload
is an ADT, simply returns in order to avoid a null
pointer exception. Any other message is handled by the standard
.
- See Also:
- Serialized Form
Methods inherited from class org.mule.providers.AbstractMessageAdapter |
addAttachment, addProperties, assertAccess, clearProperties, convertToBytes, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getPayloadAsString, getProperty, getProperty, getPropertyNames, getStringProperty, isDisabled, newException, removeAttachment, removeProperty, resetAccessControl, setBooleanProperty, setCorrelationGroupSize, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setStringProperty, toString |
OracleJmsMessageAdapter
public OracleJmsMessageAdapter(Object message)
throws MessagingException
getPayloadAsBytes
public byte[] getPayloadAsBytes()
throws Exception
- If the message payload is XML, returns the XML as an array of bytes. If the
message payload is an ADT, simply returns
in order to avoid a null pointer exception. Any other message is handled by
the standard
- Specified by:
getPayloadAsBytes
in interface UMOMessageAdapter
- Overrides:
getPayloadAsBytes
in class JmsMessageAdapter
- Returns:
- String representation of the message
- Throws:
Exception
- Implemetation may throw an endpoint specific exception- See Also:
JmsMessageAdapter.getPayloadAsBytes()
getPayloadAsString
public String getPayloadAsString(String encoding)
throws Exception
- Converts the message implementation into a String representation
- Specified by:
getPayloadAsString
in interface UMOMessageAdapter
- Overrides:
getPayloadAsString
in class JmsMessageAdapter
- Parameters:
encoding
- The encoding to use when transforming the message (if
necessary). The parameter is used when converting from a byte array
- Returns:
- String representation of the message payload
- Throws:
Exception
- Implementation may throw an endpoint specific exception
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.