cgl.narada.jms
Class JmsProperties

java.lang.Object
  extended by cgl.narada.jms.JmsProperties
All Implemented Interfaces:
JmsDebugFlags

public class JmsProperties
extends Object
implements JmsDebugFlags

This class snapshots the properties that are contained within a JMS message.


Field Summary
 
Fields inherited from interface cgl.narada.jms.JmsDebugFlags
JmsConnection_Debug, JmsDestination_Debug, JmsHeader_Debug, JmsLogger_Debug, JmsMessage_Debug, JmsObjectMessage_Debug, JmsProperties_Debug, JmsTextMessage_Debug, JmsTopic_Debug, JmsTopicAndSelectorVerifier_Debug, JmsTopicConnection_Debug, JmsTopicConnectionFactory_Debug, JmsTopicPublisher_Debug, JmsTopicSession_Debug, JmsTopicSubscriber_Debug
 
Constructor Summary
JmsProperties()
           
JmsProperties(byte[] propertiesBytes)
           
 
Method Summary
 void clearProperties()
           
 boolean getBooleanProperty(String name)
           
 byte getByteProperty(String name)
           
 byte[] getBytes()
          If there is a failure in the serialization process.
 double getDoubleProperty(String name)
           
 float getFloatProperty(String name)
           
 int getIntProperty(String name)
           
 long getLongProperty(String name)
           
 Object getObjectProperty(String name)
           
 Enumeration getPropertyNames()
           
 short getShortProperty(String name)
           
 String getStringProperty(String name)
           
static void main(String[] args)
           
 boolean propertyExists(String name)
           
 void setBooleanProperty(String name, boolean value)
           
 void setByteProperty(String name, byte value)
           
 void setDoubleProperty(String name, double value)
           
 void setFloatProperty(String name, float value)
           
 void setIntProperty(String name, int value)
           
 void setLongProperty(String name, long value)
           
 void setObjectProperty(String name, Object value)
           
 void setShortProperty(String name, short value)
           
 void setStringProperty(String name, String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JmsProperties

public JmsProperties()

JmsProperties

public JmsProperties(byte[] propertiesBytes)
Method Detail

clearProperties

public void clearProperties()
                     throws JMSException
Throws:
JMSException

propertyExists

public boolean propertyExists(String name)
                       throws JMSException
Throws:
JMSException

getBooleanProperty

public boolean getBooleanProperty(String name)
                           throws JMSException
Throws:
JMSException

setBooleanProperty

public void setBooleanProperty(String name,
                               boolean value)
                        throws JMSException
Throws:
JMSException

getByteProperty

public byte getByteProperty(String name)
                     throws JMSException
Throws:
JMSException

setByteProperty

public void setByteProperty(String name,
                            byte value)
                     throws JMSException
Throws:
JMSException

getShortProperty

public short getShortProperty(String name)
                       throws JMSException
Throws:
JMSException

setShortProperty

public void setShortProperty(String name,
                             short value)
                      throws JMSException
Throws:
JMSException

getIntProperty

public int getIntProperty(String name)
                   throws JMSException
Throws:
JMSException

setIntProperty

public void setIntProperty(String name,
                           int value)
                    throws JMSException
Throws:
JMSException

getLongProperty

public long getLongProperty(String name)
                     throws JMSException
Throws:
JMSException

setLongProperty

public void setLongProperty(String name,
                            long value)
                     throws JMSException
Throws:
JMSException

getFloatProperty

public float getFloatProperty(String name)
                       throws JMSException
Throws:
JMSException

setFloatProperty

public void setFloatProperty(String name,
                             float value)
                      throws JMSException
Throws:
JMSException

getDoubleProperty

public double getDoubleProperty(String name)
                         throws JMSException
Throws:
JMSException

setDoubleProperty

public void setDoubleProperty(String name,
                              double value)
                       throws JMSException
Throws:
JMSException

getStringProperty

public String getStringProperty(String name)
                         throws JMSException
Throws:
JMSException

setStringProperty

public void setStringProperty(String name,
                              String value)
                       throws JMSException
Throws:
JMSException

getObjectProperty

public Object getObjectProperty(String name)
                         throws JMSException
Throws:
JMSException

setObjectProperty

public void setObjectProperty(String name,
                              Object value)
                       throws JMSException
Throws:
JMSException

getPropertyNames

public Enumeration getPropertyNames()
                             throws JMSException
Throws:
JMSException

getBytes

public byte[] getBytes()
If there is a failure in the serialization process. The value that is returned is NULL


toString

public String toString()
Overrides:
toString in class Object

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project