public abstract class AbstractSynchronousConnection extends AbstractConnection
NOTE: this implementation does not support intermediate response handlers except for extended operations, because they are not supported by the equivalent synchronous methods.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSynchronousConnection()
Creates a new abstract synchronous connection.
|
| Modifier and Type | Method and Description |
|---|---|
LdapPromise<Void> |
abandonAsync(AbandonRequest request)
Abandon operations are not supported because operations are performed
synchronously and the ID of the request to be abandoned cannot be
determined.
|
LdapPromise<Result> |
addAsync(AddRequest request,
IntermediateResponseHandler intermediateResponseHandler)
Asynchronously adds an entry to the Directory Server using the provided
add request.
|
LdapPromise<BindResult> |
bindAsync(BindRequest request,
IntermediateResponseHandler intermediateResponseHandler)
Asynchronously authenticates to the Directory Server using the provided
bind request.
|
LdapPromise<CompareResult> |
compareAsync(CompareRequest request,
IntermediateResponseHandler intermediateResponseHandler)
Asynchronously compares an entry in the Directory Server using the
provided compare request.
|
LdapPromise<Result> |
deleteAsync(DeleteRequest request,
IntermediateResponseHandler intermediateResponseHandler)
Asynchronously deletes an entry from the Directory Server using the
provided delete request.
|
<R extends ExtendedResult> |
extendedRequestAsync(ExtendedRequest<R> request,
IntermediateResponseHandler intermediateResponseHandler)
Asynchronously performs the provided extended request in the Directory
Server.
|
LdapPromise<Result> |
modifyAsync(ModifyRequest request,
IntermediateResponseHandler intermediateResponseHandler)
Asynchronously modifies an entry in the Directory Server using the
provided modify request.
|
LdapPromise<Result> |
modifyDNAsync(ModifyDNRequest request,
IntermediateResponseHandler intermediateResponseHandler)
Asynchronously renames an entry in the Directory Server using the
provided modify DN request.
|
LdapPromise<Result> |
searchAsync(SearchRequest request,
IntermediateResponseHandler intermediateResponseHandler,
SearchResultHandler entryHandler)
Asynchronously searches the Directory Server using the provided search
request.
|
add, add, addAsync, applyChange, applyChangeAsync, applyChangeAsync, bind, bindAsync, close, compare, compareAsync, delete, deleteAsync, deleteSubtree, extendedRequest, extendedRequest, extendedRequestAsync, modify, modifyAsync, modifyDN, modifyDNAsync, readEntry, readEntry, readEntryAsync, search, search, search, search, searchAsync, searchSingleEntry, searchSingleEntry, searchSingleEntryAsync, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addConnectionEventListener, bind, close, compare, delete, extendedRequest, isClosed, isValid, modify, modifyDN, removeConnectionEventListener, searchprotected AbstractSynchronousConnection()
public LdapPromise<Void> abandonAsync(AbandonRequest request)
request - The request identifying the operation to be abandoned.UnsupportedOperationException - Always thrown: abandon requests are not supported for
synchronous connections.public LdapPromise<Result> addAsync(AddRequest request, IntermediateResponseHandler intermediateResponseHandler)
Connectionrequest - The add request.intermediateResponseHandler - An intermediate response handler which can be used to process
any intermediate responses as they are received, may be
null.public LdapPromise<BindResult> bindAsync(BindRequest request, IntermediateResponseHandler intermediateResponseHandler)
Connectionrequest - The bind request.intermediateResponseHandler - An intermediate response handler which can be used to process
any intermediate responses as they are received, may be
null.public LdapPromise<CompareResult> compareAsync(CompareRequest request, IntermediateResponseHandler intermediateResponseHandler)
Connectionrequest - The compare request.intermediateResponseHandler - An intermediate response handler which can be used to process
any intermediate responses as they are received, may be
null.public LdapPromise<Result> deleteAsync(DeleteRequest request, IntermediateResponseHandler intermediateResponseHandler)
Connectionrequest - The delete request.intermediateResponseHandler - An intermediate response handler which can be used to process
any intermediate responses as they are received, may be
null.public <R extends ExtendedResult> LdapPromise<R> extendedRequestAsync(ExtendedRequest<R> request, IntermediateResponseHandler intermediateResponseHandler)
ConnectionR - The type of result returned by the extended request.request - The extended request.intermediateResponseHandler - An intermediate response handler which can be used to process
any intermediate responses as they are received, may be
null.public LdapPromise<Result> modifyAsync(ModifyRequest request, IntermediateResponseHandler intermediateResponseHandler)
Connectionrequest - The modify request.intermediateResponseHandler - An intermediate response handler which can be used to process
any intermediate responses as they are received, may be
null.public LdapPromise<Result> modifyDNAsync(ModifyDNRequest request, IntermediateResponseHandler intermediateResponseHandler)
Connectionrequest - The modify DN request.intermediateResponseHandler - An intermediate response handler which can be used to process
any intermediate responses as they are received, may be
null.public LdapPromise<Result> searchAsync(SearchRequest request, IntermediateResponseHandler intermediateResponseHandler, SearchResultHandler entryHandler)
Connectionrequest - The search request.intermediateResponseHandler - An intermediate response handler which can be used to process
any intermediate responses as they are received, may be
null.entryHandler - A search result handler which can be used to asynchronously
process the search result entries and references as they are
received, may be null.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.