00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 package com.scalagent.kjoram.jms;
00025
00026 import java.util.Hashtable;
00027 import java.util.Enumeration;
00028
00034 public class CnxConnectReply extends AbstractJmsReply
00035 {
00037 private int cnxKey;
00039 private String proxyId;
00040
00048 public CnxConnectReply(CnxConnectRequest req, int cnxKey, String proxyId)
00049 {
00050 super(req.getRequestId());
00051 this.cnxKey = cnxKey;
00052 this.proxyId = proxyId;
00053 }
00054
00058 public CnxConnectReply()
00059 {}
00060
00061
00063 public void setCnxKey(int cnxKey)
00064 {
00065 this.cnxKey = cnxKey;
00066 }
00067
00069 public void setProxyId(String proxyId)
00070 {
00071 this.proxyId = proxyId;
00072 }
00073
00075 public int getCnxKey()
00076 {
00077 return cnxKey;
00078 }
00079
00081 public String getProxyId()
00082 {
00083 return proxyId;
00084 }
00085
00086 public Hashtable soapCode() {
00087 Hashtable h = super.soapCode();
00088 h.put("cnxKey",new Integer(cnxKey));
00089 h.put("proxyId",proxyId);
00090 return h;
00091 }
00092
00093 public static Object soapDecode(Hashtable h) {
00094 CnxConnectReply req = new CnxConnectReply();
00095 req.setCorrelationId(((Integer) h.get("correlationId")).intValue());
00096 req.setCnxKey(((Integer) h.get("cnxKey")).intValue());
00097 req.setProxyId((String) h.get("proxyId"));
00098 return req;
00099 }
00100 }