Class DeleteRequestImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest
org.apache.directory.api.ldap.model.message.DeleteRequestImpl
- All Implemented Interfaces:
AbandonableRequest, DeleteRequest, Message, Request, ResultResponseRequest, SingleReplyRequest
Delete request implementation.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsConstructorDescriptionCreates a DeleteRequest implementing object used to delete a leaf entry from the DIT. -
Method Summary
Modifier and TypeMethodDescriptionaddAllControls(Control[] controls) Adds an array of controls to this Message.addControl(Control control) Adds a control to this Message.booleanChecks to see if an object is equivalent to this DeleteRequest.getName()Gets the distinguished name of the leaf entry to be deleted by this request.Gets the protocol response message type for this request which produces at least one response.The result containing response for this request.inthashCode()removeControl(Control control) Deletes a control removing it from this Message.setMessageId(int messageId) Sets the Message ID for this requestSets the distinguished name of the leaf entry to be deleted by this request.toString()Return a String representing a DelRequestMethods inherited from class AbstractAbandonableRequest
abandon, addAbandonListener, isAbandonedMethods inherited from class AbstractRequest
hasResponseMethods inherited from class AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toStringMethods inherited from interface AbandonableRequest
abandon, addAbandonListener, isAbandonedMethods inherited from interface Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface Request
hasResponse
-
Constructor Details
-
DeleteRequestImpl
public DeleteRequestImpl()Creates a DeleteRequest implementing object used to delete a leaf entry from the DIT.
-
-
Method Details
-
getName
Gets the distinguished name of the leaf entry to be deleted by this request.- Specified by:
getNamein interfaceDeleteRequest- Returns:
- the Dn of the leaf entry to delete.
-
setName
Sets the distinguished name of the leaf entry to be deleted by this request.- Specified by:
setNamein interfaceDeleteRequest- Parameters:
name- the Dn of the leaf entry to delete.- Returns:
- The DeleteRequest instance
-
setMessageId
Sets the Message ID for this request- Specified by:
setMessageIdin interfaceDeleteRequest- Specified by:
setMessageIdin interfaceMessage- Overrides:
setMessageIdin classAbstractMessage- Parameters:
messageId- The message Id- Returns:
- A Message reference
-
addControl
Adds a control to this Message.- Specified by:
addControlin interfaceDeleteRequest- Specified by:
addControlin interfaceMessage- Overrides:
addControlin classAbstractMessage- Parameters:
control- the control to add.- Returns:
- A Message reference
-
addAllControls
Adds an array of controls to this Message.- Specified by:
addAllControlsin interfaceDeleteRequest- Specified by:
addAllControlsin interfaceMessage- Overrides:
addAllControlsin classAbstractMessage- Parameters:
controls- the controls to add.- Returns:
- A Message reference
-
removeControl
Deletes a control removing it from this Message.- Specified by:
removeControlin interfaceDeleteRequest- Specified by:
removeControlin interfaceMessage- Overrides:
removeControlin classAbstractMessage- Parameters:
control- the control to remove.- Returns:
- A Message reference
-
getResponseType
Gets the protocol response message type for this request which produces at least one response.- Specified by:
getResponseTypein interfaceSingleReplyRequest- Returns:
- the message type of the response.
-
getResultResponse
The result containing response for this request.- Specified by:
getResultResponsein interfaceResultResponseRequest- Returns:
- the result containing response for this request
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractRequest- Returns:
- the instance's hash code
- See Also:
-
equals
Checks to see if an object is equivalent to this DeleteRequest. First there's a quick test to see if the obj is the same object as this one - if so true is returned. Next if the super method fails false is returned. Then the name of the entry is compared - if not the same false is returned. Finally the method exists returning true.- Overrides:
equalsin classAbstractRequest- Parameters:
obj- the object to test for equality to this- Returns:
- true if the obj is equal to this DeleteRequest, false otherwise
-
toString
-