org.mule.providers.oracle.jms
Class OracleJmsMessageAdapter

java.lang.Object
  extended byorg.mule.providers.AbstractMessageAdapter
      extended byorg.mule.providers.jms.JmsMessageAdapter
          extended byorg.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

Field Summary
 
Fields inherited from class org.mule.providers.AbstractMessageAdapter
attachments, DEFAULT_FAILFAST, encoding, exceptionPayload, id, logger, properties, READ, WRITE
 
Constructor Summary
OracleJmsMessageAdapter(Object message)
           
 
Method Summary
 byte[] getPayloadAsBytes()
          If the message payload is XML, returns the XML as an array of bytes.
 String getPayloadAsString(String encoding)
          Converts the message implementation into a String representation
 
Methods inherited from class org.mule.providers.jms.JmsMessageAdapter
getCorrelationId, getPayload, getReplyTo, getUniqueId, newThreadCopy, setCorrelationId, setReplyTo, setSpecification
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OracleJmsMessageAdapter

public OracleJmsMessageAdapter(Object message)
                        throws MessagingException
Method Detail

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.