public class UnboundIDConnection extends Object implements ProviderConnection
| Modifier and Type | Class and Description |
|---|---|
protected class |
UnboundIDConnection.AbstractUnboundIDSearch
Common search functionality for unbound id iterators and listeners.
|
protected class |
UnboundIDConnection.AggregateDisconnectHandler
Allows the use of multiple disconnect handlers per connection.
|
protected class |
UnboundIDConnection.AggregateUnsolicitedNotificationHandler
Allows the use of multiple unsolicited notification handlers per connection.
|
protected class |
UnboundIDConnection.UnboundIDAsyncRequest
Async request to invoke abandons.
|
protected class |
UnboundIDConnection.UnboundIDAsyncSearchListener
Search listener for unbound id async search results.
|
protected class |
UnboundIDConnection.UnboundIDSearchIterator
Search iterator for unbound id search results.
|
| Modifier and Type | Field and Description |
|---|---|
private UnboundIDProviderConfig |
config
Provider configuration.
|
private com.unboundid.ldap.sdk.LDAPConnection |
connection
Ldap connection.
|
private UnboundIDConnection.AggregateDisconnectHandler |
disconnectHandler
Receives disconnect notifications.
|
protected Logger |
logger
Logger for this class.
|
private UnboundIDConnection.AggregateUnsolicitedNotificationHandler |
notificationHandler
Receives unsolicited notifications.
|
| Constructor and Description |
|---|
UnboundIDConnection(com.unboundid.ldap.sdk.LDAPConnection lc,
UnboundIDProviderConfig pc)
Creates a new unboundid ldap connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abandon(int messageId,
RequestControl[] controls) |
Response<Void> |
add(AddRequest request) |
void |
addUnsolicitedNotificationListener(UnsolicitedNotificationListener listener) |
protected Response<Void> |
anonymousBind(BindRequest request)
Performs an anonymous bind.
|
Response<Void> |
bind(BindRequest request) |
void |
close(RequestControl[] controls) |
Response<Boolean> |
compare(CompareRequest request) |
protected <T> Response<T> |
createResponse(Request request,
T result,
com.unboundid.ldap.sdk.LDAPResult ldapResult)
Creates an operation response with the supplied response data.
|
Response<Void> |
delete(DeleteRequest request) |
Response<?> |
extendedOperation(ExtendedRequest request) |
com.unboundid.ldap.sdk.LDAPConnection |
getLdapConnection()
Returns the underlying ldap connection.
|
Response<Void> |
modify(ModifyRequest request) |
Response<Void> |
modifyDn(ModifyDnRequest request) |
protected void |
processLDAPException(Request request,
com.unboundid.ldap.sdk.LDAPException e)
Determines if the supplied ldap exception should result in an operation retry.
|
void |
removeUnsolicitedNotificationListener(UnsolicitedNotificationListener listener) |
protected Response<Void> |
saslBind(BindRequest request)
Performs a sasl bind.
|
SearchIterator |
search(SearchRequest request) |
void |
searchAsync(SearchRequest request,
SearchListener listener) |
protected Response<Void> |
simpleBind(BindRequest request)
Performs a simple bind.
|
protected final Logger logger
private com.unboundid.ldap.sdk.LDAPConnection connection
private final UnboundIDProviderConfig config
private final UnboundIDConnection.AggregateUnsolicitedNotificationHandler notificationHandler
private final UnboundIDConnection.AggregateDisconnectHandler disconnectHandler
public UnboundIDConnection(com.unboundid.ldap.sdk.LDAPConnection lc,
UnboundIDProviderConfig pc)
lc - ldap connectionpc - provider configurationpublic com.unboundid.ldap.sdk.LDAPConnection getLdapConnection()
public void close(RequestControl[] controls) throws LdapException
close in interface ProviderConnectionLdapExceptionpublic Response<Void> bind(BindRequest request) throws LdapException
bind in interface ProviderConnectionLdapExceptionprotected Response<Void> anonymousBind(BindRequest request) throws LdapException
request - to bind withLdapException - if an error occursprotected Response<Void> simpleBind(BindRequest request) throws LdapException
request - to bind withLdapException - if an error occursprotected Response<Void> saslBind(BindRequest request) throws LdapException
request - to bind withLdapException - if an error occurspublic Response<Void> add(AddRequest request) throws LdapException
add in interface ProviderConnectionLdapExceptionpublic Response<Boolean> compare(CompareRequest request) throws LdapException
compare in interface ProviderConnectionLdapExceptionpublic Response<Void> delete(DeleteRequest request) throws LdapException
delete in interface ProviderConnectionLdapExceptionpublic Response<Void> modify(ModifyRequest request) throws LdapException
modify in interface ProviderConnectionLdapExceptionpublic Response<Void> modifyDn(ModifyDnRequest request) throws LdapException
modifyDn in interface ProviderConnectionLdapExceptionpublic SearchIterator search(SearchRequest request) throws LdapException
search in interface ProviderConnectionLdapExceptionpublic void searchAsync(SearchRequest request, SearchListener listener) throws LdapException
searchAsync in interface ProviderConnectionLdapExceptionpublic void abandon(int messageId,
RequestControl[] controls)
throws LdapException
abandon in interface ProviderConnectionLdapExceptionpublic Response<?> extendedOperation(ExtendedRequest request) throws LdapException
extendedOperation in interface ProviderConnectionLdapExceptionpublic void addUnsolicitedNotificationListener(UnsolicitedNotificationListener listener)
addUnsolicitedNotificationListener in interface ProviderConnectionpublic void removeUnsolicitedNotificationListener(UnsolicitedNotificationListener listener)
removeUnsolicitedNotificationListener in interface ProviderConnectionprotected <T> Response<T> createResponse(Request request, T result, com.unboundid.ldap.sdk.LDAPResult ldapResult)
T - type of responserequest - containing controlsresult - of the operationldapResult - provider resultprotected void processLDAPException(Request request, com.unboundid.ldap.sdk.LDAPException e) throws LdapException
request - that produced the exceptione - that was producedLdapException - wrapping the ldap exceptionCopyright © 2003-2019 Virginia Tech. All Rights Reserved.