Class ConnectionImpl

  • All Implemented Interfaces:
    Connection
    Direct Known Subclasses:
    FederationImpl

    public class ConnectionImpl
    extends Object
    implements Connection
    Class Declaration for ConnectionImpl
    Author:
    Kathy Walsh
    • Method Detail

      • getRegistryService

        public RegistryService getRegistryService()
                                           throws JAXRException
        Gets the RegistryService interface associated with the Connection.
        Specified by:
        getRegistryService in interface Connection
        Returns:
        the RegistryService associated with this object
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
        See Also:
        <{RegistryService}>
      • close

        public void close()
                   throws JAXRException
        Since a provider typically allocates significant resources outside the JVM on behalf of a Connection, clients should close them when they are not needed.
        Specified by:
        close in interface Connection
        Throws:
        JAXRException - if a JARR error occurs.
      • isClosed

        public boolean isClosed()
        Returns true if this connection has been closed.
        Specified by:
        isClosed in interface Connection
        Returns:
        closed state of connection
      • isSynchronous

        public boolean isSynchronous()
                              throws JAXRException
        Return true if client uses synchronous communication with JAXR provider. Return false by default. Note that a JAXR provider must support both modes of communication, while the client can choose which mode it wants to use.
        Specified by:
        isSynchronous in interface Connection
        Returns:
        true if Connection is synchronous (default); false otherwise
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setSynchronous

        public void setSynchronous​(boolean sync)
                            throws JAXRException
        Sets whether the client uses synchronous communication or not. A RegistryClient may dynamically change its communication style preference.
        Specified by:
        setSynchronous in interface Connection
        Parameters:
        sync - true if Connection is desired to be synchronous; false otherwise
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setCredentials

        public void setCredentials​(Set credentials)
                            throws JAXRException
        Description copied from interface: Connection
        Sets the Credentials associated with this client. The credentials is used to authenticate the client with the JAXR provider. A JAXR client may dynamically change its identity by changing the credentials associated with it.

        Capability Level: 0
        Specified by:
        setCredentials in interface Connection
        Parameters:
        credentials - a Collection oj java.lang.Objects which provide identity related information for the caller.
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • getCredentials

        public Set getCredentials()
                           throws JAXRException
        Description copied from interface: Connection
        Gets the credentials associated with this client.

        Capability Level: 0
        Specified by:
        getCredentials in interface Connection
        Returns:
        Set of java.lang.Object instances. The Collection may be empty but not null.
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • getUserDefinedTaxonomy

        public String getUserDefinedTaxonomy()
      • useCache

        public boolean useCache()
      • getCurrentUser

        public String getCurrentUser()