Class ConnectionMetaDataImpl

  • All Implemented Interfaces:
    java.util.Enumeration, javax.jms.ConnectionMetaData

    public class ConnectionMetaDataImpl
    extends java.lang.Object
    implements javax.jms.ConnectionMetaData, java.util.Enumeration
    Author:
    Andreas Mueller, IIT GmbH
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionMetaDataImpl()
      Constructor declaration
      ConnectionMetaDataImpl​(java.lang.String jmsVersion, int jmsMajorVersion, int jmsMinorVersion, java.lang.String jmsProviderName, java.lang.String jmsProviderVersion, int jmsProviderMajorVersion, int jmsProviderMinorVersion)  
    • Constructor Detail

      • ConnectionMetaDataImpl

        public ConnectionMetaDataImpl​(java.lang.String jmsVersion,
                                      int jmsMajorVersion,
                                      int jmsMinorVersion,
                                      java.lang.String jmsProviderName,
                                      java.lang.String jmsProviderVersion,
                                      int jmsProviderMajorVersion,
                                      int jmsProviderMinorVersion)
      • ConnectionMetaDataImpl

        public ConnectionMetaDataImpl()
        Constructor declaration
    • Method Detail

      • writeContent

        public void writeContent​(java.io.DataOutput out)
                          throws java.io.IOException
        Write the content of this object to the stream.
        Parameters:
        out - output stream
        Throws:
        java.io.IOException - if an error occurs
      • readContent

        public void readContent​(java.io.DataInput in)
                         throws java.io.IOException
        Read the content of this object from the stream.
        Parameters:
        in - input stream
        Throws:
        java.io.IOException - if an error occurs
      • getJMSVersion

        public java.lang.String getJMSVersion()
                                       throws javax.jms.JMSException
        Get the JMS version.
        Specified by:
        getJMSVersion in interface javax.jms.ConnectionMetaData
        Returns:
        the JMS version.
        Throws:
        javax.jms.JMSException
      • getJMSMajorVersion

        public int getJMSMajorVersion()
                               throws javax.jms.JMSException
        Get the JMS major version number.
        Specified by:
        getJMSMajorVersion in interface javax.jms.ConnectionMetaData
        Returns:
        the JMS major version number.
        Throws:
        javax.jms.JMSException
      • getJMSMinorVersion

        public int getJMSMinorVersion()
                               throws javax.jms.JMSException
        Get the JMS minor version number.
        Specified by:
        getJMSMinorVersion in interface javax.jms.ConnectionMetaData
        Returns:
        the JMS minor version number.
        Throws:
        javax.jms.JMSException
      • getJMSProviderName

        public java.lang.String getJMSProviderName()
                                            throws javax.jms.JMSException
        Get the JMS provider name.
        Specified by:
        getJMSProviderName in interface javax.jms.ConnectionMetaData
        Returns:
        the JMS provider name.
        Throws:
        javax.jms.JMSException
      • getProviderVersion

        public java.lang.String getProviderVersion()
                                            throws javax.jms.JMSException
        Get the JMS provider version.
        Specified by:
        getProviderVersion in interface javax.jms.ConnectionMetaData
        Returns:
        the JMS provider version.
        Throws:
        javax.jms.JMSException
      • getProviderMajorVersion

        public int getProviderMajorVersion()
                                    throws javax.jms.JMSException
        Get the JMS provider major version number.
        Specified by:
        getProviderMajorVersion in interface javax.jms.ConnectionMetaData
        Returns:
        the JMS provider major version number.
        Throws:
        javax.jms.JMSException
      • getProviderMinorVersion

        public int getProviderMinorVersion()
                                    throws javax.jms.JMSException
        Get the JMS provider minor version number.
        Specified by:
        getProviderMinorVersion in interface javax.jms.ConnectionMetaData
        Returns:
        the JMS provider minor version number.
        Throws:
        javax.jms.JMSException
      • getJMSXPropertyNames

        public java.util.Enumeration getJMSXPropertyNames()
                                                   throws javax.jms.JMSException
        Get an enumeration of JMSX Property Names.
        Specified by:
        getJMSXPropertyNames in interface javax.jms.ConnectionMetaData
        Returns:
        an Enumeration of JMSX PropertyNames.
        Throws:
        javax.jms.JMSException - if some internal error occurs in JMS implementation during the property names retrieval.
      • hasMoreElements

        public boolean hasMoreElements()
        Specified by:
        hasMoreElements in interface java.util.Enumeration
      • nextElement

        public java.lang.Object nextElement()
                                     throws java.util.NoSuchElementException
        Specified by:
        nextElement in interface java.util.Enumeration
        Throws:
        java.util.NoSuchElementException
      • toString

        public java.lang.String toString()
        Method declaration
        Overrides:
        toString in class java.lang.Object
        Returns: