Interface LDAPProcessor<T extends com.unboundid.ldap.protocol.ProtocolOp>
- Type Parameters:
T- Class of the request that is supported
- All Known Implementing Classes:
AbstractLDAPProcessor, BindRequestProcessor, SearchRequestProcessor
public interface LDAPProcessor<T extends com.unboundid.ldap.protocol.ProtocolOp>
Interface to be implemented by LDAP protocol request handlers
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanHandle(com.unboundid.ldap.protocol.ProtocolOp op) Method checks if passed parameter can be processed by this processorMethod returns class that is supported by this processorvoidprocess(LDAPSession session, T request, Consumer<com.unboundid.ldap.protocol.ProtocolOp> consumer) Method responsible for actual execution of the request
-
Method Details
-
getSupportedProtocolOp
-
process
void process(LDAPSession session, T request, Consumer<com.unboundid.ldap.protocol.ProtocolOp> consumer) throws Exception Method responsible for actual execution of the request- Parameters:
session- instance of LDAPSession containing authenticated user datarequest- instance of the request to be executedconsumer- method to call when processing is finished- Throws:
Exception- if unrecoverable error will happen
-
canHandle
default boolean canHandle(com.unboundid.ldap.protocol.ProtocolOp op) Method checks if passed parameter can be processed by this processor- Parameters:
op- instance of ProtocolOp containing request data- Returns:
- true if can be processed
-