org.objectweb.joram.mom.notifications
Class QueueMsgReply

java.lang.Object
  extended by fr.dyade.aaa.agent.Notification
      extended by org.objectweb.joram.mom.notifications.AbstractNotification
          extended by org.objectweb.joram.mom.notifications.AbstractReplyNot
              extended by org.objectweb.joram.mom.notifications.QueueMsgReply
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class QueueMsgReply
extends AbstractReplyNot

A QueueMsgReply instance is used by a queue for replying to a ReceiveRequest by sending a message to a client.

See Also:
Serialized Form

Field Summary
private  java.util.Vector messages
          The message sent by the queue.
private static long serialVersionUID
          define serialVersionUID for interoperability
 
Fields inherited from class fr.dyade.aaa.agent.Notification
detachable, detached, persistent
 
Constructor Summary
QueueMsgReply(ReceiveRequest req)
          Constructs a QueueMsgReply instance.
 
Method Summary
 void addMessage(Message msg)
           
 java.util.Vector getMessages()
          Returns the message wrapped by this reply.
 int getSize()
           
 java.lang.StringBuffer toString(java.lang.StringBuffer output)
          Appends a string image for this object to the StringBuffer parameter.
 
Methods inherited from class org.objectweb.joram.mom.notifications.AbstractReplyNot
getCorrelationId
 
Methods inherited from class org.objectweb.joram.mom.notifications.AbstractNotification
getClientContext, setPersistent
 
Methods inherited from class fr.dyade.aaa.agent.Notification
clone, getContext, getDeadNotificationAgentId, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
define serialVersionUID for interoperability

See Also:
Constant Field Values

messages

private java.util.Vector messages
The message sent by the queue.

Constructor Detail

QueueMsgReply

public QueueMsgReply(ReceiveRequest req)
Constructs a QueueMsgReply instance.

Parameters:
req - The ReceiveRequest actually replied.
Method Detail

getMessages

public java.util.Vector getMessages()
Returns the message wrapped by this reply.


getSize

public int getSize()

addMessage

public void addMessage(Message msg)

toString

public java.lang.StringBuffer toString(java.lang.StringBuffer output)
Appends a string image for this object to the StringBuffer parameter.

Overrides:
toString in class AbstractReplyNot
Parameters:
output - buffer to fill in
Returns:
output buffer is returned


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.