1 24 package com.scalagent.kjoram.jms; 25 26 import java.util.Hashtable ; 27 import java.util.Enumeration ; 28 29 34 public class CnxConnectReply extends AbstractJmsReply 35 { 36 37 private int cnxKey; 38 39 private String proxyId; 40 41 48 public CnxConnectReply(CnxConnectRequest req, int cnxKey, String proxyId) 49 { 50 super(req.getRequestId()); 51 this.cnxKey = cnxKey; 52 this.proxyId = proxyId; 53 } 54 55 58 public CnxConnectReply() 59 {} 60 61 62 63 public void setCnxKey(int cnxKey) 64 { 65 this.cnxKey = cnxKey; 66 } 67 68 69 public void setProxyId(String proxyId) 70 { 71 this.proxyId = proxyId; 72 } 73 74 75 public int getCnxKey() 76 { 77 return cnxKey; 78 } 79 80 81 public String getProxyId() 82 { 83 return proxyId; 84 } 85 86 public Hashtable soapCode() { 87 Hashtable h = super.soapCode(); 88 h.put("cnxKey",new Integer (cnxKey)); 89 h.put("proxyId",proxyId); 90 return h; 91 } 92 93 public static Object soapDecode(Hashtable h) { 94 CnxConnectReply req = new CnxConnectReply(); 95 req.setCorrelationId(((Integer ) h.get("correlationId")).intValue()); 96 req.setCnxKey(((Integer ) h.get("cnxKey")).intValue()); 97 req.setProxyId((String ) h.get("proxyId")); 98 return req; 99 } 100 } 101 | Popular Tags |