Package com.sun.xml.registry.uddi
Class ConnectionImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSER_DEF_TAXONOMIES
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Since a provider typically allocates significant resources outside the JVM on behalf of a Connection, clients should close them when they are not needed.SetgetCredentials()StringgetCurrentUser()javax.xml.registry.RegistryServicegetRegistryService()Gets the RegistryService interface associated with the Connection.StringgetUserDefinedTaxonomy()booleanisClosed()Returns true if this connection has been closed.booleanisSynchronous()Return true if client uses synchronous communication with JAXR provider.voidsetCredentials(Set credentials)voidsetSynchronous(boolean sync)Sets whether the client uses synchronous communication or not.booleanuseCache()
-
-
-
Field Detail
-
USER_DEF_TAXONOMIES
public static final String USER_DEF_TAXONOMIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRegistryService
public javax.xml.registry.RegistryService getRegistryService() throws javax.xml.registry.JAXRExceptionGets the RegistryService interface associated with the Connection.- Specified by:
getRegistryServicein interfacejavax.xml.registry.Connection- Throws:
javax.xml.registry.JAXRException- See Also:
- <{RegistryService}>
-
close
public void close() throws javax.xml.registry.JAXRExceptionSince 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:
closein interfacejavax.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:
isClosedin interfacejavax.xml.registry.Connection- Returns:
- closed state of connection
-
isSynchronous
public boolean isSynchronous() throws javax.xml.registry.JAXRExceptionReturn 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:
isSynchronousin interfacejavax.xml.registry.Connection- Throws:
javax.xml.registry.JAXRException
-
setSynchronous
public void setSynchronous(boolean sync) throws javax.xml.registry.JAXRExceptionSets whether the client uses synchronous communication or not. A RegistryClient may dynamically change its communication style preference.- Specified by:
setSynchronousin interfacejavax.xml.registry.Connection- Throws:
javax.xml.registry.JAXRException
-
setCredentials
public void setCredentials(Set credentials) throws javax.xml.registry.JAXRException
- Specified by:
setCredentialsin interfacejavax.xml.registry.Connection- Throws:
javax.xml.registry.JAXRException
-
getCredentials
public Set getCredentials() throws javax.xml.registry.JAXRException
- Specified by:
getCredentialsin interfacejavax.xml.registry.Connection- Throws:
javax.xml.registry.JAXRException
-
getUserDefinedTaxonomy
public String getUserDefinedTaxonomy()
-
useCache
public boolean useCache()
-
getCurrentUser
public String getCurrentUser()
-
-