Class ConnectionImpl

  • All Implemented Interfaces:
    javax.xml.registry.Connection
    Direct Known Subclasses:
    FederationImpl

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

      • getRegistryService

        public javax.xml.registry.RegistryService getRegistryService()
                                                              throws javax.xml.registry.JAXRException
        Gets the RegistryService interface associated with the Connection.
        Specified by:
        getRegistryService in interface javax.xml.registry.Connection
        Throws:
        javax.xml.registry.JAXRException
        See Also:
        <{RegistryService}>
      • close

        public void close()
                   throws javax.xml.registry.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 javax.xml.registry.Connection
        Throws:
        javax.xml.registry.JAXRException - if a JARR error occurs.
      • isClosed

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

        public boolean isSynchronous()
                              throws javax.xml.registry.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 javax.xml.registry.Connection
        Throws:
        javax.xml.registry.JAXRException
      • setSynchronous

        public void setSynchronous​(boolean sync)
                            throws javax.xml.registry.JAXRException
        Sets whether the client uses synchronous communication or not. A RegistryClient may dynamically change its communication style preference.
        Specified by:
        setSynchronous in interface javax.xml.registry.Connection
        Throws:
        javax.xml.registry.JAXRException
      • setCredentials

        public void setCredentials​(Set credentials)
                            throws javax.xml.registry.JAXRException
        Specified by:
        setCredentials in interface javax.xml.registry.Connection
        Throws:
        javax.xml.registry.JAXRException
      • getCredentials

        public Set getCredentials()
                           throws javax.xml.registry.JAXRException
        Specified by:
        getCredentials in interface javax.xml.registry.Connection
        Throws:
        javax.xml.registry.JAXRException
      • getUserDefinedTaxonomy

        public String getUserDefinedTaxonomy()
      • useCache

        public boolean useCache()
      • getCurrentUser

        public String getCurrentUser()