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 Type
    Method
    Description
    default boolean
    canHandle(com.unboundid.ldap.protocol.ProtocolOp op)
    Method checks if passed parameter can be processed by this processor
    Method returns class that is supported by this processor
    void
    process(LDAPSession session, T request, Consumer<com.unboundid.ldap.protocol.ProtocolOp> consumer)
    Method responsible for actual execution of the request
  • Method Details

    • getSupportedProtocolOp

      Class<T> getSupportedProtocolOp()
      Method returns class that is supported by this processor
      Returns:
      class of ProtocolOp supported by processor
    • 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 data
      request - instance of the request to be executed
      consumer - 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