Package org.forgerock.opendj.ldap
Interface LdapSessionCompletionListener
-
- All Superinterfaces:
EventListener
public interface LdapSessionCompletionListener extends EventListener
A listener interface for handlingLdapSession
termination.- See Also:
LdapSession
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleConnectionClosed(LdapSession context)
Invoked when the client closed the connection, possibly using an unbind request.void
handleConnectionDisconnected(LdapSession context, ResultCode resultCode, String diagnosticMessage)
Invoked when the connection has been disconnected by the server.void
handleConnectionError(LdapSession context, Throwable error)
Invoked when the connection has been disconnected because of an error (e.g: message too big).
-
-
-
Method Detail
-
handleConnectionError
void handleConnectionError(LdapSession context, Throwable error)
Invoked when the connection has been disconnected because of an error (e.g: message too big).- Parameters:
context
- TheLdapSession
which has failederror
- The error
-
handleConnectionClosed
void handleConnectionClosed(LdapSession context)
Invoked when the client closed the connection, possibly using an unbind request.- Parameters:
context
- TheLdapSession
which has been disconnected
-
handleConnectionDisconnected
void handleConnectionDisconnected(LdapSession context, ResultCode resultCode, String diagnosticMessage)
Invoked when the connection has been disconnected by the server.- Parameters:
context
- TheLdapSession
which has been disconnectedresultCode
- The result code which was included with the disconnect notification, ornull
if no disconnect notification was sent.diagnosticMessage
- The diagnostic message, which may be empty ornull
indicating that none was provided.
-
-