Package com.sun.xml.registry.uddi
Class ConnectionImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.ConnectionImpl
-
- All Implemented Interfaces:
Connection
- Direct Known Subclasses:
FederationImpl
public class ConnectionImpl extends Object implements 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()Gets the credentials associated with this client.StringgetCurrentUser()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)Sets the Credentials associated with this client.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 RegistryService getRegistryService() throws JAXRException
Gets the RegistryService interface associated with the Connection.- Specified by:
getRegistryServicein interfaceConnection- 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 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 interfaceConnection- Throws:
JAXRException- if a JARR error occurs.
-
isClosed
public boolean isClosed()
Returns true if this connection has been closed.- Specified by:
isClosedin interfaceConnection- Returns:
- closed state of connection
-
isSynchronous
public boolean isSynchronous() throws 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 interfaceConnection- Returns:
trueif Connection is synchronous (default);falseotherwise- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setSynchronous
public void setSynchronous(boolean sync) throws JAXRExceptionSets whether the client uses synchronous communication or not. A RegistryClient may dynamically change its communication style preference.- Specified by:
setSynchronousin interfaceConnection- Parameters:
sync-trueif Connection is desired to be synchronous;falseotherwise- Throws:
JAXRException- If the JAXR provider encounters an internal error
-
setCredentials
public void setCredentials(Set credentials) throws JAXRException
Description copied from interface:ConnectionSets 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:
setCredentialsin interfaceConnection- 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:ConnectionGets the credentials associated with this client.- Capability Level: 0
- Specified by:
getCredentialsin interfaceConnection- 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()
-
-