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 00034 public class ServerReply extends AbstractJmsReply 00035 { 00041 public ServerReply(AbstractJmsRequest request) 00042 { 00043 super(request.getRequestId()); 00044 } 00045 00051 public ServerReply(int correlationId) 00052 { 00053 super(correlationId); 00054 } 00055 00059 public ServerReply() 00060 {} 00061 00062 public Hashtable soapCode() { 00063 return super.soapCode(); 00064 } 00065 00066 public static Object soapDecode(Hashtable h) { 00067 ServerReply req = new ServerReply(); 00068 req.setCorrelationId(((Integer) h.get("correlationId")).intValue()); 00069 return req; 00070 } 00071 }
1.5.0