1 24 package com.scalagent.kjoram.jms; 25 26 import java.util.Hashtable ; 27 import java.util.Enumeration ; 28 29 33 public class ConsumerUnsetListRequest extends AbstractJmsRequest 34 { 35 36 private boolean queueMode; 37 41 private int cancelledRequestId = -1; 42 43 44 50 public ConsumerUnsetListRequest(boolean queueMode) 51 { 52 this.queueMode = queueMode; 53 } 54 55 58 public ConsumerUnsetListRequest() 59 {} 60 61 62 63 public void setQueueMode(boolean queueMode) 64 { 65 this.queueMode = queueMode; 66 } 67 68 72 public void setCancelledRequestId(int cancelledRequestId) 73 { 74 this.cancelledRequestId = cancelledRequestId; 75 } 76 77 78 public boolean getQueueMode() 79 { 80 return queueMode; 81 } 82 83 87 public int getCancelledRequestId() 88 { 89 return cancelledRequestId; 90 } 91 92 public Hashtable soapCode() { 93 Hashtable h = super.soapCode(); 94 h.put("cancelledRequestId",new Integer (cancelledRequestId)); 95 h.put("queueMode",new Boolean (queueMode)); 96 return h; 97 } 98 99 public static Object soapDecode(Hashtable h) { 100 ConsumerUnsetListRequest req = new ConsumerUnsetListRequest(); 101 req.setRequestId(((Integer ) h.get("requestId")).intValue()); 102 req.setTarget((String ) h.get("target")); 103 req.setCancelledRequestId( 104 ((Integer ) h.get("cancelledRequestId")).intValue()); 105 req.setQueueMode(((Boolean ) h.get("queueMode")).booleanValue()); 106 return req; 107 } 108 } 109 | Popular Tags |