Package com.unboundid.ldap.listener
Interface SearchEntryTransformer
-
- All Known Implementing Classes:
AccessLogRequestHandler,InMemoryOperationInterceptorRequestHandler,JSONAccessLogRequestHandler,LDAPDebuggerRequestHandler
@Extensible @ThreadSafety(level=INTERFACE_THREADSAFE) public interface SearchEntryTransformer
This interface may be implemented by a class which wishes to intercept and alter search result entries in some way before they are returned to the client, and/or to prevent them from being returned altogether. Search entry transformers may be enabled or disabled by adding them to or removing them from anLDAPListenerClientConnection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectPair<SearchResultEntryProtocolOp,Control[]>transformEntry(int messageID, SearchResultEntryProtocolOp entry, Control[] controls)Transforms the provided search result entry and/or set of controls to alter what will be returned to the client.
-
-
-
Method Detail
-
transformEntry
@Nullable ObjectPair<SearchResultEntryProtocolOp,Control[]> transformEntry(int messageID, @NotNull SearchResultEntryProtocolOp entry, @NotNull Control[] controls)
Transforms the provided search result entry and/or set of controls to alter what will be returned to the client.- Parameters:
messageID- The message ID for the associated search operation.entry- The search result entry 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 entry and set of controls, ornullto indicate that the entry should not be returned to the client.
-
-