com/scalagent/kjoram/ConnectionMetaData.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;
00025 
00026 import java.util.*;
00027 
00028 import com.scalagent.kjoram.excepts.JMSException;
00029 
00030 
00031 public class ConnectionMetaData
00032 {
00033   private static int jmsMajorVersion = 1;
00034   private static int jmsMinorVersion = 1;
00035   private static String jmsProviderName = "kJoram";
00036   private static String jmsVersion = "1.1";
00037   private static int providerMajorVersion = 4;
00038   private static int providerMinorVersion = 0;
00039   private static String providerVersion = "4.0";
00040   private static Vector jmsxProperties = new Vector();
00041 
00042   static
00043   {
00044     jmsxProperties.addElement("JMSXDeliveryCount");
00045     jmsxProperties.addElement("JMSXGroupID");
00046     jmsxProperties.addElement("JMSXGroupSeq");
00047   }
00048 
00054   public int getJMSMajorVersion() throws JMSException
00055   {
00056     return jmsMajorVersion;
00057   }
00058 
00064   public int getJMSMinorVersion() throws JMSException
00065   {
00066     return jmsMinorVersion;
00067   }
00068 
00074   public String getJMSProviderName() throws JMSException
00075   {
00076     return jmsProviderName;
00077   }
00078 
00084   public String getJMSVersion() throws JMSException
00085   {
00086     return jmsVersion;
00087   }
00088 
00094   public Enumeration getJMSXPropertyNames() throws JMSException
00095   {
00096     return jmsxProperties.elements();
00097   }
00098 
00104   public int getProviderMajorVersion() throws JMSException
00105   {
00106     return providerMajorVersion;
00107   }
00108 
00114   public int getProviderMinorVersion() throws JMSException
00115   {
00116     return providerMinorVersion;
00117   }
00118 
00124   public String getProviderVersion() throws JMSException
00125   {
00126     return providerVersion;
00127   }
00128 }
00129 
00130 

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