Interface ServerConnectionFactory<C,R>

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

@Deprecated public interface ServerConnectionFactory<C,R>
Deprecated.
will be removed as part of OPENDJ-3467. It has been replaced by Function<LDAPClientContext, ReactiveHandler<>>.
A handler interface for accepting new connections from clients.

A connection listener implementation, such as LDAPListener or newInternalConnectionFactory , invoke the method handleAccept whenever a new client connection is accepted.

See Also:
  • Method Summary

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

    • handleAccept

      ServerConnection<R> handleAccept(C clientContext) throws LdapException
      Deprecated.
      Invoked when a new client connection is accepted by the associated listener. Implementations should return a ServerConnection 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 ServerConnection which will be used to handle requests from a client connection.
      Throws:
      LdapException - If this server connection factory cannot accept the client connection.