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
00033 public class SessCreateTDReply extends AbstractJmsReply
00034 {
00036 private String agentId;
00037
00038
00045 public SessCreateTDReply(AbstractJmsRequest request, String agentId)
00046 {
00047 super(request.getRequestId());
00048 this.agentId = agentId;
00049 }
00050
00054 public SessCreateTDReply()
00055 {}
00056
00057
00059 public void setAgentId(String agentId)
00060 {
00061 this.agentId = agentId;
00062 }
00063
00065 public String getAgentId()
00066 {
00067 return agentId;
00068 }
00069
00070 public Hashtable soapCode() {
00071 Hashtable h = super.soapCode();
00072 if (agentId != null)
00073 h.put("agentId",agentId);
00074 return h;
00075 }
00076
00077 public static Object soapDecode(Hashtable h) {
00078 SessCreateTDReply req = new SessCreateTDReply();
00079 req.setCorrelationId(((Integer) h.get("correlationId")).intValue());
00080 req.setAgentId((String) h.get("agentId"));
00081 return req;
00082 }
00083 }