Interface AddRequest
- All Superinterfaces:
AbandonableRequest, Message, Request, ResultResponseRequest, SingleReplyRequest
- All Known Implementing Classes:
AddRequestImpl
Add protocol operation request used to add a new entry to the DIT.
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptionaddAllControls(Control[] controls) Adds an array of controls to this Message.addControl(Control control) Adds a control to this Message.getEntry()Gets the entry to add.Gets the distinguished name of the entry to add.removeControl(Control control) Deletes a control removing it from this Message.Sets the Entry to add.setEntryDn(Dn entry) Sets the distinguished name of the entry to add.setMessageId(int messageId) Sets the Message ID for this requestMethods inherited from interface AbandonableRequest
abandon, addAbandonListener, isAbandonedMethods inherited from interface Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface Request
hasResponseMethods inherited from interface ResultResponseRequest
getResultResponseMethods inherited from interface SingleReplyRequest
getResponseType
-
Method Details
-
getEntryDn
Dn getEntryDn()Gets the distinguished name of the entry to add.- Returns:
- the Dn of the added entry.
-
setEntryDn
Sets the distinguished name of the entry to add.- Parameters:
entry- the Dn of the added entry.- Returns:
- The AddRequest instance
-
getEntry
-
setEntry
Sets the Entry to add.- Parameters:
entry- the added Entry- Returns:
- The AddRequest instance
-
setMessageId
Sets the Message ID for this request- Specified by:
setMessageIdin interfaceMessage- Parameters:
messageId- The message Id- Returns:
- A Message reference
-
addControl
Adds a control to this Message.- Specified by:
addControlin interfaceMessage- Parameters:
control- the control to add.- Returns:
- A Message reference
-
addAllControls
Adds an array of controls to this Message.- Specified by:
addAllControlsin interfaceMessage- Parameters:
controls- the controls to add.- Returns:
- A Message reference
-
removeControl
Deletes a control removing it from this Message.- Specified by:
removeControlin interfaceMessage- Parameters:
control- the control to remove.- Returns:
- A Message reference
-