public interface Connection
ConnectionFactory| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes a Connection when it is no longer needed.
|
java.util.Set |
getCredentials()
Gets the credentials associated with this client.
|
RegistryService |
getRegistryService()
Gets the RegistryService interface associated with the Connection.
|
boolean |
isClosed()
Indicated whether this Connection has been closed or not.
|
boolean |
isSynchronous()
Indicates whether a client uses synchronous communication with Jakarta XML Registries provider or not.
|
void |
setCredentials(java.util.Set credentials)
Sets the Credentials associated with this client.
|
void |
setSynchronous(boolean sync)
Sets whether the client uses synchronous communication or not.
|
RegistryService getRegistryService() throws JAXRException
JAXRException - If the Jakarta XML Registries provider encounters an internal errorRegistryServicevoid close()
throws JAXRException
JAXRException - If the Jakarta XML Registries provider encounters an internal errorboolean isClosed()
throws JAXRException
true if Connection is closed; false otherwiseJAXRException - If the Jakarta XML Registries provider encounters an internal errorboolean isSynchronous()
throws JAXRException
true if Connection is synchronous (default); false otherwiseJAXRException - If the Jakarta XML Registries provider encounters an internal errorvoid setSynchronous(boolean sync)
throws JAXRException
sync - true if Connection is desired to be synchronous; false otherwiseJAXRException - If the Jakarta XML Registries provider encounters an internal errorvoid setCredentials(java.util.Set credentials)
throws JAXRException
credentials - a Collection oj java.lang.Objects which provide identity related information for the caller.JAXRException - If the Jakarta XML Registries provider encounters an internal errorjava.util.Set getCredentials()
throws JAXRException
JAXRException - If the Jakarta XML Registries provider encounters an internal error