public interface Connection extends 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<Void> |
open()
This will establish a connection to the LDAP.
|
Response<Void> |
open(BindRequest request)
This will establish a connection to the LDAP using the supplied bind request.
|
Response<Void> |
reopen()
This will close an existing connection to the LDAP and establish a new connection to the LDAP.
|
Response<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<Void> open() throws LdapException
close()
.ConnectionInitializer
or an empty response if no connection
initializer was configuredIllegalStateException
- if the connection is already openLdapException
- if the LDAP cannot be reachedResponse<Void> open(BindRequest request) throws LdapException
close()
.request
- containing bind informationIllegalStateException
- 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 AutoCloseable
void close(RequestControl[] controls)
controls
- request controlsResponse<Void> reopen() throws LdapException
ConnectionInitializer
or an empty response if no connection
initializer was configuredLdapException
- if the LDAP cannot be reachedResponse<Void> reopen(BindRequest request) throws LdapException
request
- containing bind informationLdapException
- if the LDAP cannot be reachedCopyright © 2003-2019 Virginia Tech. All Rights Reserved.