1 24 package org.objectweb.joram.mom.notifications; 25 26 import java.util.Enumeration ; 27 import java.util.Vector ; 28 29 33 public class AcknowledgeRequest extends AbstractRequest 34 { 35 36 private String msgId = null; 37 38 private Vector msgIds = null; 39 40 41 48 public AcknowledgeRequest(int clientContext, int requestId, Vector msgIds) 49 { 50 super(clientContext, requestId); 51 this.msgIds = msgIds; 52 } 53 54 61 public AcknowledgeRequest(int clientContext, int requestId, String msgId) 62 { 63 super(clientContext, requestId); 64 this.msgId = msgId; 65 } 66 67 68 69 public Enumeration getIds() 70 { 71 if (msgIds == null) { 72 msgIds = new Vector (); 73 if (msgId != null) 74 msgIds.add(msgId); 75 } 76 return msgIds.elements(); 77 } 78 } 79 | Popular Tags |