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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, addConnectionEventListener, bind, close, compare, delete, delete, extendedRequest, isClosed, isValid, modify, modifyDn, removeConnectionEventListener, search
protected 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)
Connection
request
- 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)
Connection
request
- 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)
Connection
request
- 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)
Connection
request
- 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)
Connection
R
- 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)
Connection
request
- 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)
Connection
request
- 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)
Connection
request
- 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 2010-2022 ForgeRock AS.