Class AdminMessage
- java.lang.Object
-
- org.objectweb.joram.client.jms.Message
-
- org.objectweb.joram.client.jms.admin.AdminMessage
-
-
Field Summary
-
Fields inherited from class org.objectweb.joram.client.jms.Message
jmsDest, momMsg, propertiesRO, RObody, session
-
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_DELAY, DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
-
-
Constructor Summary
Constructors Constructor Description AdminMessage()Instantiates a bright newAdminMessage.AdminMessage(Session session, Message momMsg)Instantiates anAdminMessagewrapping a consumed MOM message containing a Admin message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractAdminMessagegetAdminMessage()get the AbstractAdminMessage body of the message.voidsetAdminMessage(AbstractAdminMessage adminMsg)Sets an AbstractAdminMessage as the body of the message.-
Methods inherited from class org.objectweb.joram.client.jms.Message
acknowledge, clearBody, clearProperties, convertJMSMessage, dumpBody, dumpBody, getBody, getBooleanProperty, getByteProperty, getCompressedMinSize, getCompressionLevel, getDoubleProperty, getEffectiveBody, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getMomMsg, getObjectProperty, getProperties, getPropertyNames, getRawBody, getShortProperty, getStringProperty, isBodyAssignableTo, isCompressed, prepare, prepareJMSMessage, propertyExists, resetPropertiesRO, setBooleanProperty, setByteProperty, setCompressedMinSize, setCompressionLevel, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toString, toString, wrapMomMessage
-
-
-
-
Method Detail
-
setAdminMessage
public void setAdminMessage(AbstractAdminMessage adminMsg) throws MessageNotWriteableException, MessageFormatException
Sets an AbstractAdminMessage as the body of the message.- Parameters:
adminMsg- admin message- Throws:
MessageNotWriteableExceptionMessageFormatException
-
getAdminMessage
public AbstractAdminMessage getAdminMessage() throws MessageFormatException
get the AbstractAdminMessage body of the message.- Returns:
- AbstractAdminMessage body of the message.
- Throws:
MessageFormatException
-
-