com.anabas.ibus
Class GMS_MessageIBusWrapper
java.lang.Object
|
+--com.anabas.gxo.GMS_Message
|
+--com.anabas.ibus.GMS_MessageIBusWrapper
- public class GMS_MessageIBusWrapper
- extends GMS_Message
Title:
Description:
Copyright: Copyright (c) 2000
Company:
Fields inherited from class com.anabas.gxo.GMS_Message |
BODYTYPE_BYTES,
BODYTYPE_MAP,
BODYTYPE_OBJECT,
BODYTYPE_TEXT,
BODYTYPE_XML,
MSGTYPE_ACK,
MSGTYPE_ADMINISTRATION,
MSGTYPE_MAJOR,
MSGTYPE_MINOR,
PRIORITY_LOW,
PRIORITY_NORMAL,
PRIORITY_REALTIME |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
GMS_MessageIBusWrapper
public GMS_MessageIBusWrapper(javax.jms.Message msg)
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Supports only string properties.
- Overrides:
- getProperty in class GMS_Message
getTimeStamp
public com.anabas.concepts.Time getTimeStamp()
- Overrides:
- getTimeStamp in class GMS_Message
- Returns:
- The JMS Time Stamp header wrapped in a Simple time implementation.
setProperty
public void setProperty(java.lang.String name,
java.lang.Object property)
throws GXO_Exception
- Description copied from class: GMS_Message
- Sets a message property.
- Overrides:
- setProperty in class GMS_Message
- Tags copied from class: GMS_Message
- Throws:
- InvalidPropertyException - The property type or content is unsupported or incorrect.
getPriority
public long getPriority()
- Overrides:
- getPriority in class GMS_Message
- Tags copied from class: GMS_Message
- Returns:
- The priority of the message
getBodyType
public long getBodyType()
- Overrides:
- getBodyType in class GMS_Message
- Returns:
- Detects the ibus message type and return the appropriate message
type tag. -1 if unknown.
getID
public GMS_MessageID getID()
- Description copied from class: GMS_Message
- Uniquely identifies it from other messages within the system.
?? Should it be unique within the system?
- Overrides:
- getID in class GMS_Message
getMessageType
public long getMessageType()
- Description copied from class: GMS_Message
- One of ADMINSTRATION, NORMAL, or ACK.
- Overrides:
- getMessageType in class GMS_Message
- Returns:
- The integer value set in gxo_message_type. This should really be
a JMS message header but since we can't modify it.
clearProperties
public void clearProperties()
throws GXO_Exception
- Overrides:
- clearProperties in class GMS_Message
clearBody
public void clearBody()
throws GXO_Exception
- Overrides:
- clearBody in class GMS_Message
getPropertyNames
public java.util.Enumeration getPropertyNames()
throws GXO_Exception
- Overrides:
- getPropertyNames in class GMS_Message