1 24 package com.scalagent.kjoram.jms; 25 26 import java.util.Hashtable ; 27 import java.util.Enumeration ; 28 29 33 public class ConsumerSetListRequest extends AbstractJmsRequest 34 { 35 36 private String selector; 37 38 private boolean queueMode; 39 40 48 public ConsumerSetListRequest(String targetName, String selector, 49 boolean queueMode) 50 { 51 super(targetName); 52 this.selector = selector; 53 this.queueMode = queueMode; 54 } 55 56 59 public ConsumerSetListRequest() 60 {} 61 62 63 public void setSelector(String selector) 64 { 65 this.selector = selector; 66 } 67 68 69 public void setQueueMode(boolean queueMode) 70 { 71 this.queueMode = queueMode; 72 } 73 74 75 public String getSelector() 76 { 77 return selector; 78 } 79 80 81 public boolean getQueueMode() 82 { 83 return queueMode; 84 } 85 86 public Hashtable soapCode() { 87 Hashtable h = super.soapCode(); 88 if (selector != null) 89 h.put("selector",selector); 90 h.put("queueMode",new Boolean (queueMode)); 91 return h; 92 } 93 94 public static Object soapDecode(Hashtable h) { 95 ConsumerSetListRequest req = new ConsumerSetListRequest(); 96 req.setRequestId(((Integer ) h.get("requestId")).intValue()); 97 req.setTarget((String ) h.get("target")); 98 req.setSelector((String ) h.get("selector")); 99 req.setQueueMode(((Boolean ) h.get("queueMode")).booleanValue()); 100 return req; 101 } 102 } 103 | Popular Tags |