Joram 5.0.7

org.objectweb.joram.kclient
Class AbstractReply

java.lang.Object
  extended by org.objectweb.joram.kclient.AbstractMessage
      extended by org.objectweb.joram.kclient.AbstractReply
All Implemented Interfaces:
Streamable
Direct Known Subclasses:
CnxCloseReply, CnxConnectReply, ConsumerMessages, MomExceptionReply

public abstract class AbstractReply
extends AbstractMessage

An AbstractReply is sent by a proxy to a Joram client as a reply to an AbstractJmsRequest.


Field Summary
protected  int correlationId
          Identifier of the replied request.
 
Fields inherited from class org.objectweb.joram.kclient.AbstractMessage
ACTIVATE_CONSUMER_REQUEST, classid, classnames, CNX_CLOSE_REPLY, CNX_CLOSE_REQUEST, CNX_CONNECT_REPLY, CNX_CONNECT_REQUEST, CNX_START_REQUEST, CNX_STOP_REQUEST, CONSUMER_ACK_REQUEST, CONSUMER_CLOSE_SUB_REQUEST, CONSUMER_DENY_REQUEST, CONSUMER_MESSAGES, CONSUMER_RECEIVE_REQUEST, CONSUMER_SUB_REQUEST, CONSUMER_UNSUB_REQUEST, MOM_EXCEPTION_REPLY, NULL_CLASS_ID, PRODUCER_MESSAGES, SERVER_REPLY, SESS_ACK_REQUEST, SESS_DENY_REQUEST
 
Constructor Summary
AbstractReply()
          Constructs an AbstractReply.
AbstractReply(int correlationId)
          Constructs an AbstractReply.
 
Method Summary
 int getCorrelationId()
          Returns the replied request identifier.
 void readFrom(InputXStream is)
          The object implements the readFrom method to restore its contents from the input stream.
 void toString(java.lang.StringBuffer strbuf)
           
 void writeTo(OutputXStream os)
          The object implements the writeTo method to write its contents to the output stream.
 
Methods inherited from class org.objectweb.joram.kclient.AbstractMessage
getClassId, read, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

correlationId

protected int correlationId
Identifier of the replied request.

Constructor Detail

AbstractReply

public AbstractReply()
Constructs an AbstractReply.


AbstractReply

public AbstractReply(int correlationId)
Constructs an AbstractReply.

Parameters:
correlationId - Identifier of the replied request.
Method Detail

getCorrelationId

public final int getCorrelationId()
Returns the replied request identifier.


toString

public void toString(java.lang.StringBuffer strbuf)
Specified by:
toString in class AbstractMessage

writeTo

public final void writeTo(OutputXStream os)
                   throws java.io.IOException
The object implements the writeTo method to write its contents to the output stream.

Parameters:
os - the stream to write the object to
Throws:
java.io.IOException

readFrom

public void readFrom(InputXStream is)
              throws java.io.IOException
The object implements the readFrom method to restore its contents from the input stream.

Parameters:
is - the stream to read data from in order to restore the object
Throws:
java.io.IOException

Joram 5.0.7

Copyright © 2005 Scalagent - All rights reserved