1 24 package org.objectweb.joram.mom.notifications; 25 26 import java.util.Enumeration ; 27 import java.util.Vector ; 28 29 33 public class DenyRequest extends AbstractRequest 34 { 35 36 private String msgId = null; 37 38 private Vector msgIds = null; 39 40 41 48 public DenyRequest(int clientContext, int requestId, Vector msgIds) 49 { 50 super(clientContext, requestId); 51 this.msgIds = msgIds; 52 } 53 54 61 public DenyRequest(int clientContext, int requestId, String msgId) 62 { 63 super(clientContext, requestId); 64 this.msgId = msgId; 65 } 66 67 72 public DenyRequest(int clientContext) 73 { 74 super(clientContext, -1); 75 } 76 77 78 79 public Enumeration getIds() 80 { 81 if (msgIds == null) { 82 msgIds = new Vector (); 83 if (msgId != null) 84 msgIds.add(msgId); 85 } 86 return msgIds.elements(); 87 } 88 89 97 public StringBuffer toString(StringBuffer output) { 98 output.append('('); 99 super.toString(output); 100 output.append(",msgId=").append(msgId); 101 output.append(",msgIds=").append(msgIds); 102 output.append(')'); 103 104 return output; 105 } 106 } 107 108 109 | Popular Tags |