ConnectionFactory
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Set | Returns: Set of java.lang.Object instances. The Collection may be empty but not null.Gets the credentials associated with this client. |
| public RegistryService | Returns: the RegistryService associated with this objectGets the RegistryService interface associated with the Connection. |
| public boolean | Returns: true if Connection is closed; false otherwiseIndicated whether this Connection has been closed or not. |
| public boolean | Returns: true if Connection is synchronous (default); false otherwiseIndicates whether a client uses synchronous communication with Jakarta XML Registries provider or not. |
| public void | setCredentials(Set<E>
a Collection oj java.lang.Objects which provide identity related information for the caller. credentials)Sets the Credentials associated with this client. |
| public void | setSynchronous(boolean
true if Connection is desired to be synchronous; false otherwiseSets whether the client uses synchronous communication or not. |
| close | back to summary |
|---|---|
| public void close() throws JAXRException Closes a Connection when it is no longer needed. Since a provider typically allocates significant resources outside the JVM on behalf of a Connection, clients should close them when they are not needed.
| |
| getCredentials | back to summary |
|---|---|
| public Set Gets the credentials associated with this client.
| |
| getRegistryService | back to summary |
|---|---|
| public RegistryService getRegistryService() throws JAXRException Gets the RegistryService interface associated with the Connection. If a Connection property (e.g. credentials) is set after the client calls getRegistryService then the newly set Connection property is visible to the RegistryService previously returned by this call.
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() throws JAXRException Indicated whether this Connection has been closed or not.
| |
| isSynchronous | back to summary |
|---|---|
| public boolean isSynchronous() throws JAXRException Indicates whether a client uses synchronous communication with Jakarta XML Registries provider or not. A Jakarta XML Registries provider must support both modes of communication. A Jakarta XML Registries client can choose which mode it wants to use.
| |
| setCredentials | back to summary |
|---|---|
| public void setCredentials(Set<E> credentials) throws JAXRException Sets the Credentials associated with this client. The credentials is used to authenticate the client with the Jakarta XML Registries provider. A Jakarta XML Registries client may dynamically change its identity by changing the credentials associated with it.
| |
| setSynchronous | back to summary |
|---|---|
| public void setSynchronous(boolean sync) throws JAXRException Sets whether the client uses synchronous communication or not. A Jakarta XML Registries client may dynamically change its communication style preference.
| |