Package org.forgerock.opendj.ldap
Interface ServerConnection<C>
- Type Parameters:
C- The type of request context.
- All Superinterfaces:
RequestHandler<C>
Deprecated.
A handler interface for interacting with client connections. A
ServerConnection is associated with a client connection when the
handleAccept method is
invoked against a ServerConnectionFactory.
Implementations are responsible for handling connection life-cycle as well as
request life-cycle. In particular, a ServerConnection is responsible
for processing abandon and unbind requests, as well as extended operations
such as StartTLS and Cancel operations.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleAbandon(C requestContext, AbandonRequest request) Deprecated.Invoked when an abandon request is received from a client.voidhandleConnectionClosed(C requestContext, UnbindRequest request) Deprecated.Invoked when the client closes the connection, possibly using an unbind request.voidhandleConnectionDisconnected(ResultCode resultCode, String message) Deprecated.Invoked when the server disconnects the client connection, possibly using a disconnect notification.voidhandleConnectionError(Throwable error) Deprecated.Invoked when an error occurs on the connection and it is no longer usable.Methods inherited from interface org.forgerock.opendj.ldap.RequestHandler
handleAdd, handleBind, handleCompare, handleDelete, handleExtendedRequest, handleModify, handleModifyDN, handleSearch
-
Method Details
-
handleAbandon
Deprecated.Invoked when an abandon request is received from a client.- Parameters:
requestContext- The request context.request- The abandon request.- Throws:
UnsupportedOperationException- If this server connection does not handle abandon requests.
-
handleConnectionClosed
Deprecated.Invoked when the client closes the connection, possibly using an unbind request.- Parameters:
requestContext- The request context which should be ignored if there was no associated unbind request.request- The unbind request, which may benullif one was not sent before the connection was closed.
-
handleConnectionDisconnected
Deprecated.Invoked when the server disconnects the client connection, possibly using a disconnect notification.- Parameters:
resultCode- The result code which was included with the disconnect notification, ornullif no disconnect notification was sent.message- The diagnostic message, which may be empty ornullindicating that none was provided.
-
handleConnectionError
Deprecated.Invoked when an error occurs on the connection and it is no longer usable.- Parameters:
error- The exception describing the problem that occurred.
-
ReactiveHandler<>