public class ConnectionImpl extends Object implements Connection
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_DEF_TAXONOMIES |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Since a provider typically allocates significant resources outside
the JVM on behalf of a Connection, clients should close them when
they are not needed.
|
Set |
getCredentials()
Gets the credentials associated with this client.
|
String |
getCurrentUser() |
RegistryService |
getRegistryService()
Gets the RegistryService interface associated with the Connection.
|
String |
getUserDefinedTaxonomy() |
boolean |
isClosed()
Returns true if this connection has been closed.
|
boolean |
isSynchronous()
Return true if client uses synchronous communication with JAXR provider.
|
void |
setCredentials(Set credentials)
Sets the Credentials associated with this client.
|
void |
setSynchronous(boolean sync)
Sets whether the client uses synchronous communication or not.
|
boolean |
useCache() |
public static final String USER_DEF_TAXONOMIES
public RegistryService getRegistryService() throws JAXRException
getRegistryService in interface ConnectionJAXRException - If the JAXR provider encounters an internal errorpublic void close()
throws JAXRException
close in interface ConnectionJAXRException - if a JARR error occurs.public boolean isClosed()
isClosed in interface Connectionpublic boolean isSynchronous()
throws JAXRException
isSynchronous in interface Connectiontrue if Connection is synchronous (default); false otherwiseJAXRException - If the JAXR provider encounters an internal errorpublic void setSynchronous(boolean sync)
throws JAXRException
setSynchronous in interface Connectionsync - true if Connection is desired to be synchronous; false otherwiseJAXRException - If the JAXR provider encounters an internal errorpublic void setCredentials(Set credentials) throws JAXRException
ConnectionsetCredentials in interface Connectioncredentials - a Collection oj java.lang.Objects which provide identity related information for the caller.JAXRException - If the JAXR provider encounters an internal errorpublic Set getCredentials() throws JAXRException
ConnectiongetCredentials in interface ConnectionJAXRException - If the JAXR provider encounters an internal errorpublic String getUserDefinedTaxonomy()
public boolean useCache()
public String getCurrentUser()
Copyright © 2005–2017 Oracle Corporation. All rights reserved.