org.osesb.eaimessage
Class EAIJMSMessage

java.lang.Object
  extended by org.osesb.eaimessage.EAIMessage
      extended by org.osesb.eaimessage.EAIJMSMessage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
EAIJMSXMLMessage

public class EAIJMSMessage
extends EAIMessage

EAIMessage with JMS Message content.

Since:
Version .9
See Also:
Serialized Form

Field Summary
protected  javax.jms.Message jmsMessage
          The JMS Message.
 
Fields inherited from class org.osesb.eaimessage.EAIMessage
correlationID, log, messageCreateDateTime, messageID, messageProperties, messageType, thisClassName, wssSecurityProfile
 
Constructor Summary
EAIJMSMessage(javax.jms.Message jmsMessage)
          Creates a new instance of EAIJMSMessage.
 
Method Summary
 java.lang.Object clone()
          Cloneable interface.
 javax.jms.Message getJMSMessage()
          Returns the javax.jms.Message for this EAIJMSMessage.
 java.lang.Object getMessageContents()
          Return the message contents for this EAIMessage.
 java.lang.String toString()
          Returns the String representation of this EAIJMSMessage.
 
Methods inherited from class org.osesb.eaimessage.EAIMessage
constructEAIMessageFromContentObject, getCorrelationID, getMessageCreateDateTime, getMessageID, getMessageProperties, getMessageProperty, getMessageType, getMessageTypeAsString, getPassword, getUsername, getWSSSecurityProfile, setCorrelationID, setMessageID, setMessageProperties, setMessageProperty, setMessageType, setWSSSecurityProfile
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jmsMessage

protected javax.jms.Message jmsMessage
The JMS Message.

Constructor Detail

EAIJMSMessage

public EAIJMSMessage(javax.jms.Message jmsMessage)
              throws java.lang.Exception
Creates a new instance of EAIJMSMessage.

Parameters:
jmsMessage - An instance of javax.jms.Message
Throws:
java.lang.Exception - if constructed with a null jmsMessage.
Method Detail

getJMSMessage

public javax.jms.Message getJMSMessage()
Returns the javax.jms.Message for this EAIJMSMessage.

Returns:
the javax.jms.Message for this EAIJMSMessage.

getMessageContents

public java.lang.Object getMessageContents()
                                    throws java.lang.Exception
Return the message contents for this EAIMessage.

Specified by:
getMessageContents in class EAIMessage
Returns:
the message contents for this EAIMessage.
Throws:
java.lang.Exception - if an error occurs while retrieving the message contents.

toString

public java.lang.String toString()
Returns the String representation of this EAIJMSMessage.

Overrides:
toString in class EAIMessage
Returns:
the String representation of this EAIJMSMessage.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Cloneable interface.

Specified by:
clone in class EAIMessage
Throws:
java.lang.CloneNotSupportedException