|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connection
Interface for ldap connection implementations.
| Method Summary | |
|---|---|
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() and 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. |
| Method Detail |
|---|
ConnectionConfig getConnectionConfig()
Response<Void> open()
throws LdapException
close().
ConnectionInitializer or an
empty response if no connection initializer was configured
IllegalStateException - if the connection is already open
LdapException - if the LDAP cannot be reached
Response<Void> open(BindRequest request)
throws LdapException
close().
request - containing bind information
IllegalStateException - if the connection is already open
LdapException - if the LDAP cannot be reachedboolean isOpen()
open(BindRequest) was successfully invoked on this
connection and close() and not been invoked. This method does not
indicate the viability of this connection for use.
ProviderConnection getProviderConnection()
open().
void close()
void close(RequestControl[] controls)
controls - request controls
Response<Void> reopen()
throws LdapException
ConnectionInitializer or an
empty response if no connection initializer was configured
LdapException - if the LDAP cannot be reached
Response<Void> reopen(BindRequest request)
throws LdapException
request - containing bind information
LdapException - if the LDAP cannot be reached
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||