1 24 package org.objectweb.joram.mom.notifications; 25 26 import org.objectweb.joram.shared.messages.Message; 27 28 import java.util.*; 29 30 34 public class QueueMsgReply extends AbstractReply { 35 36 private Vector messages; 37 38 44 public QueueMsgReply(ReceiveRequest req) { 45 super(req.getClientContext(), req.getRequestId()); 46 messages = new Vector(); 47 } 48 49 50 public Vector getMessages() { 51 return messages; 52 } 53 54 public int getSize() { 55 return messages.size(); 56 } 57 58 public void addMessage(Message msg) { 59 messages.addElement(msg); 60 } 61 62 70 public StringBuffer toString(StringBuffer output) { 71 output.append('('); 72 super.toString(output); 73 output.append(",messages=").append(messages); 74 output.append(')'); 75 76 return output; 77 } 78 } 79 | Popular Tags |