Package org.forgerock.opendj.io
Interface LDAPMessageHandler
- All Known Implementing Classes:
AbstractLDAPMessageHandler
public interface LDAPMessageHandler
An interface for handling LDAP messages decoded using an
LDAPReader.-
Method Summary
Modifier and TypeMethodDescriptionvoidabandonRequest(int messageID, AbandonRequest request) Handles an LDAP abandon request message.voidaddRequest(int messageID, AddRequest request) Handles an LDAP add request message.voidHandles an LDAP add result message.voidbindRequest(int messageID, int version, GenericBindRequest request) Handles an LDAP bind request message.voidbindResult(int messageID, BindResult result) Handles an LDAP bind result message.voidcompareRequest(int messageID, CompareRequest request) Handles an LDAP compare request message.voidcompareResult(int messageID, CompareResult result) Handles an LDAP compare result message.voiddeleteRequest(int messageID, DeleteRequest request) Handles an LDAP delete request message.voiddeleteResult(int messageID, Result result) Handles an LDAP delete result message.<R extends ExtendedResult>
voidextendedRequest(int messageID, ExtendedRequest<R> request) Handles an LDAP extended request message.voidextendedResult(int messageID, ExtendedResult result) Handles an LDAP extended result message.voidintermediateResponse(int messageID, IntermediateResponse response) Handles an LDAP intermediate response message.voidmodifyDNRequest(int messageID, ModifyDNRequest request) Handles an LDAP modify DN request message.voidmodifyDNResult(int messageID, Result result) Handles an LDAP modify DN result message.voidmodifyRequest(int messageID, ModifyRequest request) Handles an LDAP modify request message.voidmodifyResult(int messageID, Result result) Handles an LDAP modify result message.voidsearchRequest(int messageID, SearchRequest request) Handles an LDAP search request message.voidsearchResult(int messageID, Result result) Handles an LDAP search result message.voidsearchResultEntry(int messageID, SearchResultEntry entry) Handles an LDAP search result entry message.voidsearchResultReference(int messageID, SearchResultReference reference) Handles an LDAP search result reference message.voidunbindRequest(int messageID, UnbindRequest request) Handles an LDAP unbind request message.voidunrecognizedMessage(int messageID, byte messageTag, ByteString messageBytes) Handles an unrecognized LDAP message.
-
Method Details
-
abandonRequest
Handles an LDAP abandon request message.- Parameters:
messageID- The LDAP message ID.request- The decoded abandon request.- Throws:
DecodeException- If this handler does not support abandon requests.IOException- If an unexpected IO error occurred while processing the request.
-
addRequest
Handles an LDAP add request message.- Parameters:
messageID- The LDAP message ID.request- The decoded add request.- Throws:
DecodeException- If this handler does not support add requests.IOException- If an unexpected IO error occurred while processing the request.
-
addResult
Handles an LDAP add result message.- Parameters:
messageID- The LDAP message ID.result- The decoded add result.- Throws:
DecodeException- If this handler does not support add results.IOException- If an unexpected IO error occurred while processing the response.
-
bindRequest
void bindRequest(int messageID, int version, GenericBindRequest request) throws DecodeException, IOException Handles an LDAP bind request message.- Parameters:
messageID- The LDAP message ID.version- The requested LDAP protocol version.request- The decoded bind request.- Throws:
DecodeException- If this handler does not support bind requests.IOException- If an unexpected IO error occurred while processing the request.
-
bindResult
Handles an LDAP bind result message.- Parameters:
messageID- The LDAP message ID.result- The decoded bind result.- Throws:
DecodeException- If this handler does not support bind results.IOException- If an unexpected IO error occurred while processing the response.
-
compareRequest
Handles an LDAP compare request message.- Parameters:
messageID- The LDAP message ID.request- The decoded compare request.- Throws:
DecodeException- If this handler does not support compare requests.IOException- If an unexpected IO error occurred while processing the request.
-
compareResult
Handles an LDAP compare result message.- Parameters:
messageID- The LDAP message ID.result- The decoded compare result.- Throws:
DecodeException- If this handler does not support compare results.IOException- If an unexpected IO error occurred while processing the response.
-
deleteRequest
Handles an LDAP delete request message.- Parameters:
messageID- The LDAP message ID.request- The decoded delete request.- Throws:
DecodeException- If this handler does not support delete requests.IOException- If an unexpected IO error occurred while processing the request.
-
deleteResult
Handles an LDAP delete result message.- Parameters:
messageID- The LDAP message ID.result- The decoded delete result.- Throws:
DecodeException- If this handler does not support delete results.IOException- If an unexpected IO error occurred while processing the response.
-
extendedRequest
<R extends ExtendedResult> void extendedRequest(int messageID, ExtendedRequest<R> request) throws DecodeException, IOException Handles an LDAP extended request message.- Type Parameters:
R- type of extended result- Parameters:
messageID- The LDAP message ID.request- The decoded extended request.- Throws:
DecodeException- If this handler does not support extended requests.IOException- If an unexpected IO error occurred while processing the request.
-
extendedResult
Handles an LDAP extended result message.- Parameters:
messageID- The LDAP message ID.result- The decoded extended result.- Throws:
DecodeException- If this handler does not support extended results.IOException- If an unexpected IO error occurred while processing the response.
-
intermediateResponse
void intermediateResponse(int messageID, IntermediateResponse response) throws DecodeException, IOException Handles an LDAP intermediate response message.- Parameters:
messageID- The LDAP message ID.response- The decoded intermediate response.- Throws:
DecodeException- If this handler does not support intermediate responses.IOException- If an unexpected IO error occurred while processing the response.
-
modifyDNRequest
Handles an LDAP modify DN request message.- Parameters:
messageID- The LDAP message ID.request- The decoded modify DN request.- Throws:
DecodeException- If this handler does not support modify DN requests.IOException- If an unexpected IO error occurred while processing the request.
-
modifyDNResult
Handles an LDAP modify DN result message.- Parameters:
messageID- The LDAP message ID.result- The decoded modify DN result.- Throws:
DecodeException- If this handler does not support modify DN results.IOException- If an unexpected IO error occurred while processing the response.
-
modifyRequest
Handles an LDAP modify request message.- Parameters:
messageID- The LDAP message ID.request- The decoded modify request.- Throws:
DecodeException- If this handler does not support modify requests.IOException- If an unexpected IO error occurred while processing the request.
-
modifyResult
Handles an LDAP modify result message.- Parameters:
messageID- The LDAP message ID.result- The decoded modify result.- Throws:
DecodeException- If this handler does not support modify results.IOException- If an unexpected IO error occurred while processing the response.
-
searchRequest
Handles an LDAP search request message.- Parameters:
messageID- The LDAP message ID.request- The decoded search request.- Throws:
DecodeException- If this handler does not support search requests.IOException- If an unexpected IO error occurred while processing the request.
-
searchResult
Handles an LDAP search result message.- Parameters:
messageID- The LDAP message ID.result- The decoded search result.- Throws:
DecodeException- If this handler does not support search results.IOException- If an unexpected IO error occurred while processing the response.
-
searchResultEntry
Handles an LDAP search result entry message.- Parameters:
messageID- The LDAP message ID.entry- The decoded search result entry.- Throws:
DecodeException- If this handler does not support search result entries.IOException- If an unexpected IO error occurred while processing the response.
-
searchResultReference
void searchResultReference(int messageID, SearchResultReference reference) throws DecodeException, IOException Handles an LDAP search result reference message.- Parameters:
messageID- The LDAP message ID.reference- The decoded search result reference.- Throws:
DecodeException- If this handler does not support search result references.IOException- If an unexpected IO error occurred while processing the response.
-
unbindRequest
Handles an LDAP unbind request message.- Parameters:
messageID- The LDAP message ID.request- The decoded unbind request.- Throws:
DecodeException- If this handler does not support unbind requests.IOException- If an unexpected IO error occurred while processing the request.
-
unrecognizedMessage
void unrecognizedMessage(int messageID, byte messageTag, ByteString messageBytes) throws DecodeException, IOException Handles an unrecognized LDAP message.- Parameters:
messageID- The LDAP message ID.messageTag- The LDAP message type.messageBytes- The contents of the LDAP message.- Throws:
DecodeException- If this handler does not support the message type.IOException- If an unexpected IO error occurred while processing the message.
-