Package com.unboundid.ldap.listener
Interface IntermediateResponseTransformer
- All Known Implementing Classes:
InMemoryOperationInterceptorRequestHandler,LDAPDebuggerRequestHandler
@Extensible
@ThreadSafety(level=INTERFACE_THREADSAFE)
public interface IntermediateResponseTransformer
This interface may be implemented by a class which wishes to intercept and
alter intermediate responses in some way before they are returned to the
client, and/or to prevent them from being returned altogether.
-
Method Summary
Modifier and TypeMethodDescriptiontransformIntermediateResponse(int messageID, IntermediateResponseProtocolOp response, Control[] controls) Transforms the provided intermediate response and/or set of controls to alter what will be returned to the client.
-
Method Details
-
transformIntermediateResponse
@Nullable ObjectPair<IntermediateResponseProtocolOp,Control[]> transformIntermediateResponse(int messageID, @NotNull IntermediateResponseProtocolOp response, @NotNull Control[] controls) Transforms the provided intermediate response and/or set of controls to alter what will be returned to the client.- Parameters:
messageID- The message ID for the associated search operation.response- The intermediate response to be processed. It will not benull.controls- The set of controls to be processed. It will not benullbut may be empty if there are no controls.- Returns:
- An
ObjectPaircontaining a possibly updated intermediate response and set of controls, ornullto indicate that the response should not be returned to the client.
-