1 24 package com.scalagent.kjoram.jms; 25 26 import java.util.Hashtable ; 27 import java.util.Enumeration ; 28 29 33 public class QBrowseRequest extends AbstractJmsRequest 34 { 35 36 private String selector; 37 38 44 public QBrowseRequest(String to, String selector) 45 { 46 super(to); 47 this.selector = selector; 48 } 49 50 53 public QBrowseRequest() 54 {} 55 56 57 public void setSelector(String selector) 58 { 59 this.selector = selector; 60 } 61 62 63 public String getSelector() 64 { 65 return selector; 66 } 67 68 public Hashtable soapCode() { 69 Hashtable h = super.soapCode(); 70 if (selector != null) 71 h.put("selector",selector); 72 return h; 73 } 74 75 public static Object soapDecode(Hashtable h) { 76 QBrowseRequest req = new QBrowseRequest(); 77 req.setRequestId(((Integer ) h.get("requestId")).intValue()); 78 req.setTarget((String ) h.get("target")); 79 req.setSelector((String ) h.get("selector")); 80 return req; 81 } 82 } 83 | Popular Tags |