com/scalagent/kjoram/jms/SessCreateTDReply.java

00001 /*
00002  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
00003  * Copyright (C) 2001 - ScalAgent Distributed Technologies
00004  * Copyright (C) 1996 - Dyade
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  * 
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA.
00020  *
00021  * Initial developer(s): Frederic Maistre (INRIA)
00022  * Contributor(s): Nicolas Tachker (ScalAgent)
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 }

Generated on Tue Sep 16 16:14:24 2008 for joram by  doxygen 1.5.0