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