@Override public FutureResult<Resource> deleteAsync( final Context context, final DeleteRequest request, final ResultHandler<Resource> handler) { final FutureResultHandler<Resource> future = new FutureResultHandler<Resource>(handler); requestHandler.handleDelete(getServerContext(context), request, future); return future; }
/** {@inheritDoc} */ @Override public void handleDelete( final Integer messageID, final DeleteRequest request, final IntermediateResponseHandler intermediateResponseHandler, final LdapResultHandler<Result> resultHandler) { final RequestContextImpl<Result, LdapResultHandler<Result>> requestContext = new RequestContextImpl<>(this, resultHandler, messageID, true); if (addPendingRequest(requestContext)) { requestHandler.handleDelete( requestContext, request, intermediateResponseHandler, requestContext); } }