Package org.forgerock.opendj.io
Class LdapWriter
java.lang.Object
org.forgerock.opendj.io.LdapWriter
Writes LDAP messages to an underlying ASN.1 writer.
Methods for creating LdapWriter
s are provided in the Ldap
class.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the protocol version supported by thisLdapWriter
.void
writeAbandonRequest
(int messageID, AbandonRequest request) Writes the provided abandon request.void
writeAddRequest
(int messageID, AddRequest request) Writes the provided add request.void
writeAddResult
(int messageID, Result result) Writes the provided add result.void
writeBindRequest
(int messageID, BindRequest request) Writes the provided bind request.void
writeBindResult
(int messageID, Result result) Writes the provided bind result.void
writeCompareRequest
(int messageID, CompareRequest request) Writes the provided compare request.void
writeCompareResult
(int messageID, Result result) Writes the provided compare result.void
writeDeleteRequest
(int messageID, DeleteRequest request) Writes the provided delete request.void
writeDeleteResult
(int messageID, Result result) Writes the provided delete result.void
writeExtendedRequest
(int messageID, ExtendedRequest<?> request) Writes the provided extended request.void
writeExtendedResult
(int messageID, Result result) Writes the provided extended result.void
writeIntermediateResponse
(int messageID, IntermediateResponse response) Writes the provided intermediate response.void
writeLdapMessage
(LdapMessage ldapMessage) Writes the provided LDAP message.void
writeModifyDnRequest
(int messageID, ModifyDnRequest request) Writes the provided modify DN request.void
writeModifyDnResult
(int messageID, Result result) Writes the provided modify DN result.void
writeModifyRequest
(int messageID, ModifyRequest request) Writes the provided modify request.void
writeModifyResult
(int messageID, Result result) Writes the provided extended result.void
writeSearchRequest
(int messageID, SearchRequest request) Writes the provided search request.void
writeSearchResult
(int messageID, Result result) Writes the provided search result.void
writeSearchResultEntry
(int messageID, SearchResultEntry entry) Writes the provided search result entry.void
writeSearchResultReference
(int messageID, SearchResultReference reference) Writes the provided search result reference.void
writeUnbindRequest
(int messageID, UnbindRequest request) Writes the provided unbind request.void
writeUnknownRequest
(int messageID, UnknownRequest unknownRequest) Writes the provided unknown request.
-
Method Details
-
getProtocolVersion
public int getProtocolVersion()Returns the protocol version supported by thisLdapWriter
.- Returns:
- The protocol version supported by this
LdapWriter
-
writeLdapMessage
Writes the provided LDAP message.- Parameters:
ldapMessage
- The message to write.
-
writeAbandonRequest
Writes the provided abandon request.- Parameters:
messageID
- The LDAP message ID.request
- The request.
-
writeAddRequest
Writes the provided add request.- Parameters:
messageID
- The LDAP message ID.request
- The request.
-
writeAddResult
Writes the provided add result.- Parameters:
messageID
- The LDAP message ID.result
- The result.
-
writeBindRequest
Writes the provided bind request.- Parameters:
messageID
- The LDAP message ID.request
- The request.
-
writeBindResult
Writes the provided bind result.- Parameters:
messageID
- The LDAP message ID.result
- The result.
-
writeCompareRequest
Writes the provided compare request.- Parameters:
messageID
- The LDAP message ID.request
- The request.
-
writeCompareResult
Writes the provided compare result.- Parameters:
messageID
- The LDAP message ID.result
- The result.
-
writeDeleteRequest
Writes the provided delete request.- Parameters:
messageID
- The LDAP message ID.request
- The request.
-
writeDeleteResult
Writes the provided delete result.- Parameters:
messageID
- The LDAP message ID.result
- The result.
-
writeExtendedRequest
Writes the provided extended request.- Parameters:
messageID
- The LDAP message ID.request
- The request.
-
writeExtendedResult
Writes the provided extended result.- Parameters:
messageID
- The LDAP message ID.result
- The result.
-
writeIntermediateResponse
Writes the provided intermediate response.- Parameters:
messageID
- The LDAP message ID.response
- The response.
-
writeModifyDnRequest
Writes the provided modify DN request.- Parameters:
messageID
- The LDAP message ID.request
- The request.
-
writeModifyDnResult
Writes the provided modify DN result.- Parameters:
messageID
- The LDAP message ID.result
- The result.
-
writeModifyRequest
Writes the provided modify request.- Parameters:
messageID
- The LDAP message ID.request
- The request.
-
writeModifyResult
Writes the provided extended result.- Parameters:
messageID
- The LDAP message ID.result
- The result.
-
writeSearchRequest
Writes the provided search request.- Parameters:
messageID
- The LDAP message ID.request
- The request.
-
writeSearchResult
Writes the provided search result.- Parameters:
messageID
- The LDAP message ID.result
- The result.
-
writeSearchResultEntry
Writes the provided search result entry.- Parameters:
messageID
- The LDAP message ID.entry
- The entry.
-
writeSearchResultReference
Writes the provided search result reference.- Parameters:
messageID
- The LDAP message ID.reference
- The reference.
-
writeUnbindRequest
Writes the provided unbind request.- Parameters:
messageID
- The LDAP message ID.request
- The request.
-
writeUnknownRequest
Writes the provided unknown request.- Parameters:
messageID
- The LDAP message ID.unknownRequest
- The request.
-