|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.jms.XBMessage
public class XBMessage
XBMessage. Implementation details about how
Field Summary | |
---|---|
protected boolean |
acknowledged
|
static int |
BYTES
|
protected byte[] |
content
|
private java.lang.String |
correlationID
|
static int |
DEFAULT_TYPE
|
private int |
deliveryMode
|
protected javax.jms.Destination |
destination
|
private long |
expiration
|
protected Global |
global
|
private java.lang.String |
jmsType
|
private static java.util.logging.Logger |
log
|
static int |
MAP
|
private static java.lang.String |
ME
|
private java.lang.String |
messageID
|
static int |
OBJECT
|
private int |
priority
|
private boolean |
propertyReadOnly
|
protected java.util.Map |
props
|
protected boolean |
readOnly
|
private boolean |
redelivered
|
private javax.jms.Destination |
replyTo
|
protected XBSession |
session
|
static int |
STREAM
|
static int |
STREAMING
|
static int |
TEXT
|
private long |
timestamp
|
protected int |
type
|
Fields inherited from interface javax.jms.Message |
---|
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Constructor Summary | |
---|---|
XBMessage(XBSession session,
byte[] content,
int type)
|
Method Summary | |
---|---|
void |
acknowledge()
|
static java.lang.String |
addToKeyAndCheck(java.lang.String key)
|
protected void |
checkPropertiesReadOnly(java.lang.String methodName,
java.lang.String key)
Checks if the properties are readonly. |
void |
clearBody()
|
void |
clearProperties()
|
static ClientProperty |
get(java.lang.String key,
java.util.Map map)
|
boolean |
getBooleanProperty(java.lang.String key)
|
byte |
getByteProperty(java.lang.String key)
|
double |
getDoubleProperty(java.lang.String key)
|
float |
getFloatProperty(java.lang.String key)
|
int |
getIntProperty(java.lang.String key)
|
java.lang.String |
getJMSCorrelationID()
|
byte[] |
getJMSCorrelationIDAsBytes()
|
int |
getJMSDeliveryMode()
|
javax.jms.Destination |
getJMSDestination()
|
long |
getJMSExpiration()
|
java.lang.String |
getJMSMessageID()
xmlBlaster specific messageId is our unique timestamp |
int |
getJMSPriority()
|
boolean |
getJMSRedelivered()
|
javax.jms.Destination |
getJMSReplyTo()
|
long |
getJMSTimestamp()
|
java.lang.String |
getJMSType()
|
long |
getLongProperty(java.lang.String key)
|
java.lang.Object |
getObjectProperty(java.lang.String key)
|
java.util.Enumeration |
getPropertyNames()
|
short |
getShortProperty(java.lang.String key)
Can handle String, Byte, and Short properties |
java.lang.String |
getStringProperty(java.lang.String key)
|
(package private) boolean |
isAcknowledged()
|
boolean |
propertyExists(java.lang.String key)
|
(package private) void |
setAcknowledged(boolean acknowledged)
|
void |
setBooleanProperty(java.lang.String key,
boolean value)
|
void |
setByteProperty(java.lang.String key,
byte value)
|
void |
setDoubleProperty(java.lang.String key,
double value)
|
void |
setFloatProperty(java.lang.String key,
float value)
|
void |
setIntProperty(java.lang.String key,
int value)
|
void |
setJMSCorrelationID(java.lang.String correlationID)
|
void |
setJMSCorrelationIDAsBytes(byte[] correlationId)
|
void |
setJMSDeliveryMode(int deliveryMode)
This method is invoked by the send method |
void |
setJMSDestination(javax.jms.Destination destination)
This method is invoked by the send method |
void |
setJMSExpiration(long lifeTime)
This method is invoked by the send method |
void |
setJMSMessageID(java.lang.String messageID)
This is overwritten when invoking the getter This method is invoked by the send method |
void |
setJMSPriority(int priority)
This method is invoked by the send method |
void |
setJMSRedelivered(boolean redelivered)
Only useful for interprovider operations, otherwise ignored This method is normally invoked by the provider |
void |
setJMSReplyTo(javax.jms.Destination sender)
|
void |
setJMSTimestamp(long timestamp)
This method is invoked by the send method |
void |
setJMSType(java.lang.String jmsType)
|
void |
setLongProperty(java.lang.String key,
long value)
|
void |
setObjectProperty(java.lang.String key,
java.lang.Object value)
|
(package private) void |
setPropertyReadOnly(boolean propertyReadOnly)
Used internally |
(package private) void |
setReadOnly(boolean readOnly)
Used internally |
void |
setShortProperty(java.lang.String key,
short value)
|
void |
setStringProperty(java.lang.String key,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TEXT
public static final int BYTES
public static final int OBJECT
public static final int MAP
public static final int STREAM
public static final int STREAMING
public static final int DEFAULT_TYPE
private static java.util.logging.Logger log
private static final java.lang.String ME
protected Global global
protected byte[] content
protected int type
protected boolean acknowledged
protected boolean readOnly
protected java.util.Map props
private boolean propertyReadOnly
protected XBSession session
protected javax.jms.Destination destination
private boolean redelivered
private int priority
private java.lang.String messageID
private java.lang.String correlationID
private int deliveryMode
private long expiration
private javax.jms.Destination replyTo
private long timestamp
private java.lang.String jmsType
Constructor Detail |
---|
public XBMessage(XBSession session, byte[] content, int type)
session
- content
- type
- Method Detail |
---|
boolean isAcknowledged()
void setAcknowledged(boolean acknowledged)
public void acknowledge() throws javax.jms.JMSException
acknowledge
in interface javax.jms.Message
javax.jms.JMSException
protected final void checkPropertiesReadOnly(java.lang.String methodName, java.lang.String key) throws javax.jms.MessageNotWriteableException
methodName
- key
-
javax.jms.MessageNotWriteableException
public void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
javax.jms.JMSException
public void clearProperties() throws javax.jms.JMSException
clearProperties
in interface javax.jms.Message
javax.jms.JMSException
public boolean getBooleanProperty(java.lang.String key) throws javax.jms.JMSException
getBooleanProperty
in interface javax.jms.Message
javax.jms.JMSException
public byte getByteProperty(java.lang.String key) throws javax.jms.JMSException
getByteProperty
in interface javax.jms.Message
javax.jms.JMSException
public double getDoubleProperty(java.lang.String key) throws javax.jms.JMSException
getDoubleProperty
in interface javax.jms.Message
javax.jms.JMSException
public float getFloatProperty(java.lang.String key) throws javax.jms.JMSException
getFloatProperty
in interface javax.jms.Message
javax.jms.JMSException
public int getIntProperty(java.lang.String key) throws javax.jms.JMSException
getIntProperty
in interface javax.jms.Message
javax.jms.JMSException
public java.lang.String getJMSCorrelationID() throws javax.jms.JMSException
getJMSCorrelationID
in interface javax.jms.Message
javax.jms.JMSException
public byte[] getJMSCorrelationIDAsBytes() throws javax.jms.JMSException
getJMSCorrelationIDAsBytes
in interface javax.jms.Message
javax.jms.JMSException
public int getJMSDeliveryMode() throws javax.jms.JMSException
getJMSDeliveryMode
in interface javax.jms.Message
javax.jms.JMSException
public javax.jms.Destination getJMSDestination() throws javax.jms.JMSException
getJMSDestination
in interface javax.jms.Message
javax.jms.JMSException
public long getJMSExpiration() throws javax.jms.JMSException
getJMSExpiration
in interface javax.jms.Message
javax.jms.JMSException
public java.lang.String getJMSMessageID() throws javax.jms.JMSException
getJMSMessageID
in interface javax.jms.Message
javax.jms.JMSException
public int getJMSPriority() throws javax.jms.JMSException
getJMSPriority
in interface javax.jms.Message
javax.jms.JMSException
public boolean getJMSRedelivered() throws javax.jms.JMSException
getJMSRedelivered
in interface javax.jms.Message
javax.jms.JMSException
public javax.jms.Destination getJMSReplyTo() throws javax.jms.JMSException
getJMSReplyTo
in interface javax.jms.Message
javax.jms.JMSException
public long getJMSTimestamp() throws javax.jms.JMSException
getJMSTimestamp
in interface javax.jms.Message
javax.jms.JMSException
public java.lang.String getJMSType() throws javax.jms.JMSException
getJMSType
in interface javax.jms.Message
javax.jms.JMSException
public long getLongProperty(java.lang.String key) throws javax.jms.JMSException
getLongProperty
in interface javax.jms.Message
javax.jms.JMSException
public java.lang.Object getObjectProperty(java.lang.String key) throws javax.jms.JMSException
getObjectProperty
in interface javax.jms.Message
javax.jms.JMSException
public java.util.Enumeration getPropertyNames() throws javax.jms.JMSException
getPropertyNames
in interface javax.jms.Message
javax.jms.JMSException
public short getShortProperty(java.lang.String key) throws javax.jms.JMSException
getShortProperty
in interface javax.jms.Message
javax.jms.JMSException
public java.lang.String getStringProperty(java.lang.String key) throws javax.jms.JMSException
getStringProperty
in interface javax.jms.Message
javax.jms.JMSException
public boolean propertyExists(java.lang.String key) throws javax.jms.JMSException
propertyExists
in interface javax.jms.Message
javax.jms.JMSException
public static java.lang.String addToKeyAndCheck(java.lang.String key)
public static ClientProperty get(java.lang.String key, java.util.Map map)
public void setBooleanProperty(java.lang.String key, boolean value) throws javax.jms.JMSException
setBooleanProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setByteProperty(java.lang.String key, byte value) throws javax.jms.JMSException
setByteProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setDoubleProperty(java.lang.String key, double value) throws javax.jms.JMSException
setDoubleProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setFloatProperty(java.lang.String key, float value) throws javax.jms.JMSException
setFloatProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setIntProperty(java.lang.String key, int value) throws javax.jms.JMSException
setIntProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSCorrelationID(java.lang.String correlationID) throws javax.jms.JMSException
setJMSCorrelationID
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSCorrelationIDAsBytes(byte[] correlationId) throws javax.jms.JMSException
setJMSCorrelationIDAsBytes
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSDeliveryMode(int deliveryMode) throws javax.jms.JMSException
setJMSDeliveryMode
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSDestination(javax.jms.Destination destination) throws javax.jms.JMSException
setJMSDestination
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSExpiration(long lifeTime) throws javax.jms.JMSException
setJMSExpiration
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSMessageID(java.lang.String messageID) throws javax.jms.JMSException
setJMSMessageID
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSPriority(int priority) throws javax.jms.JMSException
setJMSPriority
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSRedelivered(boolean redelivered) throws javax.jms.JMSException
setJMSRedelivered
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSReplyTo(javax.jms.Destination sender) throws javax.jms.JMSException
setJMSReplyTo
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSTimestamp(long timestamp) throws javax.jms.JMSException
setJMSTimestamp
in interface javax.jms.Message
javax.jms.JMSException
public void setJMSType(java.lang.String jmsType) throws javax.jms.JMSException
setJMSType
in interface javax.jms.Message
javax.jms.JMSException
public void setLongProperty(java.lang.String key, long value) throws javax.jms.JMSException
setLongProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setObjectProperty(java.lang.String key, java.lang.Object value) throws javax.jms.JMSException
setObjectProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setShortProperty(java.lang.String key, short value) throws javax.jms.JMSException
setShortProperty
in interface javax.jms.Message
javax.jms.JMSException
public void setStringProperty(java.lang.String key, java.lang.String value) throws javax.jms.JMSException
setStringProperty
in interface javax.jms.Message
javax.jms.JMSException
void setPropertyReadOnly(boolean propertyReadOnly)
propertyReadOnly
- void setReadOnly(boolean readOnly)
readOnly
-
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |