Interface RequestHandlerFactory<C,R extends RequestContext>

Type Parameters:
C - The type of client context.
R - The type of request context.

public interface RequestHandlerFactory<C,R extends RequestContext>
A handler interface for accepting new connections from clients.
  • Method Summary

    Modifier and Type
    Method
    Description
    handleAccept(C clientContext)
    Invoked when a new client connection is accepted by the associated listener.
  • Method Details

    • handleAccept

      RequestHandler<R> handleAccept(C clientContext) throws LdapException
      Invoked when a new client connection is accepted by the associated listener. Implementations should return a RequestHandler which will be used to handle requests from the client connection.
      Parameters:
      clientContext - The protocol dependent context information associated with the client connection. Depending on the protocol this may contain information about the client such as their address and level connection security. It may also be used to manage the state of the client's connection.
      Returns:
      A RequestHandler which will be used to handle requests from a client connection.
      Throws:
      LdapException - If this request handler factory cannot accept the client connection.