public interface Connection
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This will close the connection to the LDAP.
|
void |
close(RequestControl[] controls)
This will close the connection to the LDAP using the supplied controls.
|
ConnectionConfig |
getConnectionConfig()
Returns the connection config for this connection.
|
ProviderConnection |
getProviderConnection()
Returns the provider connection to invoke the provider specific implementation.
|
boolean |
isOpen()
Returns whether
open(BindRequest) was successfully invoked on this connection and close() has not
been invoked. |
Response<java.lang.Void> |
open()
This will establish a connection to the LDAP.
|
Response<java.lang.Void> |
open(BindRequest request)
This will establish a connection to the LDAP using the supplied bind request.
|
Response<java.lang.Void> |
reopen()
This will close an existing connection to the LDAP and establish a new connection to the LDAP.
|
Response<java.lang.Void> |
reopen(BindRequest request)
This will close an existing connection to the LDAP and establish a new connection to the LDAP using the supplied
bind request.
|
ConnectionConfig getConnectionConfig()
Response<java.lang.Void> open() throws LdapException
close().ConnectionInitializer or an empty response if no connection
initializer was configuredjava.lang.IllegalStateException - if the connection is already openLdapException - if the LDAP cannot be reachedResponse<java.lang.Void> open(BindRequest request) throws LdapException
close().request - containing bind informationjava.lang.IllegalStateException - if the connection is already openLdapException - if the LDAP cannot be reachedboolean isOpen()
open(BindRequest) was successfully invoked on this connection and close() has not
been invoked. This method does not indicate the viability of this connection for use.ProviderConnection getProviderConnection()
open().void close()
close in interface java.lang.AutoCloseablevoid close(RequestControl[] controls)
controls - request controlsResponse<java.lang.Void> reopen() throws LdapException
ConnectionInitializer or an empty response if no connection
initializer was configuredLdapException - if the LDAP cannot be reachedResponse<java.lang.Void> reopen(BindRequest request) throws LdapException
request - containing bind informationLdapException - if the LDAP cannot be reached