org.huihoo.jfox.ms.jms.message
Class CorrelationID

java.lang.Object
  extended byorg.huihoo.jfox.ms.jms.message.CorrelationID

public class CorrelationID
extends java.lang.Object

This class implements message header fields CorrelationID for messages.

Version:
Revision: 1.1 Date: 2002-11-10 19:52:20
Author:
Peter.Cheng

Constructor Summary
CorrelationID()
          Default Constructor.
CorrelationID(byte[] correlationID)
          Create CorrelationID with bytes ID.
CorrelationID(java.lang.String correlationID)
          Create CorrelationID with string ID.
 
Method Summary
 byte[] getBytesID()
          Gets the byte correlation ID for the message.
 java.lang.String getStringID()
          Gets the String correlation ID for the message.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CorrelationID

public CorrelationID()
Default Constructor.


CorrelationID

public CorrelationID(java.lang.String correlationID)
              throws javax.jms.JMSException
Create CorrelationID with string ID.

Parameters:
correlationID - String type.
Throws:
javax.jms.JMSException - if the JMS provider fails to set the correlation ID due to some internal error.

CorrelationID

public CorrelationID(byte[] correlationID)
              throws javax.jms.JMSException
Create CorrelationID with bytes ID.

Parameters:
correlationID - Bytes type.
Throws:
javax.jms.JMSException - if the JMS provider fails to set the correlation ID due to some internal error.
Method Detail

getStringID

public java.lang.String getStringID()
                             throws javax.jms.JMSException
Gets the String correlation ID for the message.

Returns:
correlationID String type.
Throws:
javax.jms.JMSException - if the JMS provider fails to set the correlation ID due to some internal error.

getBytesID

public byte[] getBytesID()
                  throws javax.jms.JMSException
Gets the byte correlation ID for the message.

Returns:
correlationID Bytes type.
Throws:
javax.jms.JMSException - if the JMS provider fails to set the correlation ID due to some internal error.

toString

public java.lang.String toString()


Copyright © 2002-2003 Open Enterprise Foundation. All Rights Reserved.