org.apache.wsif.util.jms
Class WSIFJMSCorrelationId
java.lang.Object
|
+--org.apache.wsif.util.jms.WSIFJMSCorrelationId
- All Implemented Interfaces:
- java.io.Serializable, WSIFCorrelationId
- public class WSIFJMSCorrelationId
- extends java.lang.Object
- implements WSIFCorrelationId
A WSIFCorrelationId is used to identify asynchronous
requests so that a request can be matched to its response.
- Author:
- Ant Elder
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object cid)
Compares this WSIFJMSCorrelationId to the specified object. |
java.lang.String |
getCorrelationId()
gets the value of this WSIFJMSCorrelationId as a String. |
byte[] |
getCorrelationIdAsBytes()
gets the value of this WSIFJMSCorrelationId as a byte array. |
int |
hashCode()
Returns a hashcode for this object. |
java.lang.String |
toString()
The String representation of this object is returned. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
WSIFJMSCorrelationId
public WSIFJMSCorrelationId(java.lang.String id)
- Creates a new WSIFJMSCorrelationId.
- Parameters:
id
- the id string
getCorrelationId
public java.lang.String getCorrelationId()
- gets the value of this WSIFJMSCorrelationId as a String.
- Specified by:
getCorrelationId
in interface WSIFCorrelationId
- Parameters:
the
- String value of this id
getCorrelationIdAsBytes
public byte[] getCorrelationIdAsBytes()
- gets the value of this WSIFJMSCorrelationId as a byte array.
- Specified by:
getCorrelationIdAsBytes
in interface WSIFCorrelationId
- Parameters:
a
- byte array of this id
equals
public boolean equals(java.lang.Object cid)
- Compares this WSIFJMSCorrelationId to the specified object.
The result is true if and only if the argument is not null
and is a WSIFCorrelationId object that represents the same
String id as this object.
- Overrides:
equals
in class java.lang.Object
- Returns:
- true if the WSIFCorrelationId's have the same id,
otherwise false;
toString
public java.lang.String toString()
- The String representation of this object is returned.
- Overrides:
toString
in class java.lang.Object
- Returns:
- the id string.
hashCode
public int hashCode()
- Returns a hashcode for this object.
- Overrides:
hashCode
in class java.lang.Object
- Returns:
- a hash code value for this object.
Copyright © 2002, 2002 Apache XML Project. All Rights Reserved.