Package com.unboundid.ldap.listener
Interface SearchReferenceTransformer
- All Known Implementing Classes:
InMemoryOperationInterceptorRequestHandler,LDAPDebuggerRequestHandler
This interface may be implemented by a class which wishes to intercept and
alter search result references in some way before they are returned to the
client, and/or to prevent them from being returned altogether. Search
reference transformers may be enabled or disabled by adding them to or
removing them from an
LDAPListenerClientConnection.-
Method Summary
Modifier and TypeMethodDescriptiontransformReference(int messageID, SearchResultReferenceProtocolOp reference, Control[] controls) Transforms the provided search result reference and/or set of controls to alter what will be returned to the client.
-
Method Details
-
transformReference
@Nullable ObjectPair<SearchResultReferenceProtocolOp,Control[]> transformReference(int messageID, @NotNull SearchResultReferenceProtocolOp reference, @NotNull Control[] controls) Transforms the provided search result reference and/or set of controls to alter what will be returned to the client.- Parameters:
messageID- The message ID for the associated search operation.reference- The search result reference 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 reference and set of controls, ornullto indicate that the reference should not be returned to the client.
-