public class DeleteRequestImpl extends AbstractAbandonableRequest implements DeleteRequest
controls
RESP_TYPE, TYPE
Constructor and Description |
---|
DeleteRequestImpl()
Creates a DeleteRequest implementing object used to delete a
leaf entry from the DIT.
|
Modifier and Type | Method and Description |
---|---|
DeleteRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message.
|
DeleteRequest |
addControl(Control control)
Adds a control to this Message.
|
boolean |
equals(Object obj)
Checks to see if an object is equivalent to this DeleteRequest.
|
Dn |
getName()
Gets the distinguished name of the leaf entry to be deleted by this
request.
|
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces
at least one response.
|
DeleteResponse |
getResultResponse()
The result containing response for this request.
|
int |
hashCode() |
DeleteRequest |
removeControl(Control control)
Deletes a control removing it from this Message.
|
DeleteRequest |
setMessageId(int messageId)
Sets the Message ID for this request
|
DeleteRequest |
setName(Dn name)
Sets the distinguished name of the leaf entry to be deleted by this
request.
|
String |
toString()
Return a String representing a DelRequest
|
abandon, addAbandonListener, isAbandoned
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
abandon, addAbandonListener, isAbandoned
public DeleteRequestImpl()
public Dn getName()
getName
in interface DeleteRequest
public DeleteRequest setName(Dn name)
setName
in interface DeleteRequest
name
- the Dn of the leaf entry to delete.public DeleteRequest setMessageId(int messageId)
setMessageId
in interface DeleteRequest
setMessageId
in interface Message
setMessageId
in class AbstractMessage
messageId
- The message Idpublic DeleteRequest addControl(Control control) throws MessageException
addControl
in interface DeleteRequest
addControl
in interface Message
addControl
in class AbstractMessage
control
- the control to add.MessageException
- if controls cannot be added to this Message or the control is
not known etc.public DeleteRequest addAllControls(Control[] controls) throws MessageException
addAllControls
in interface DeleteRequest
addAllControls
in interface Message
addAllControls
in class AbstractMessage
controls
- the controls to add.MessageException
- if controls cannot be added to this Message or they are not known etc.public DeleteRequest removeControl(Control control) throws MessageException
removeControl
in interface DeleteRequest
removeControl
in interface Message
removeControl
in class AbstractMessage
control
- the control to remove.MessageException
- if controls cannot be added to this Message or the control is
not known etc.public MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest<DeleteResponse>
public DeleteResponse getResultResponse()
getResultResponse
in interface ResultResponseRequest<DeleteResponse>
public int hashCode()
hashCode
in class AbstractRequest
Object.hashCode()
public boolean equals(Object obj)
equals
in class AbstractRequest
obj
- the object to test for equality to thisCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.