public class DelRequestDsml extends AbstractResultResponseRequestDsml<DeleteRequest,DeleteResponse> implements DeleteRequest
Constructor and Description |
---|
DelRequestDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of DelRequestDsml.
|
DelRequestDsml(LdapApiService codec,
DeleteRequest ldapMessage)
Creates a new getDecoratedMessage() of DelRequestDsml.
|
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.
|
Dn |
getEntry()
Get the entry to be deleted
|
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.
|
MessageTypeEnum |
getType()
Gets the LDAP message type code associated with this Message.
|
DeleteRequest |
removeControl(Control control)
Deletes a control removing it from this Message.
|
void |
setEntry(Dn entry)
Set the entry to be deleted
|
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.
|
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Creates the Request Element and adds RequestID and Controls.
|
abandon, addAbandonListener, computeLength, encode, getResultResponse, isAbandoned
hasResponse
get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, put
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResultResponse
hasResponse
get, getControl, getControls, getMessageId, hasControl, put
abandon, addAbandonListener, isAbandoned
public DelRequestDsml(LdapApiService codec)
codec
- The LDAP Service to usepublic DelRequestDsml(LdapApiService codec, DeleteRequest ldapMessage)
codec
- The LDAP Service to useldapMessage
- the message to decoratepublic MessageTypeEnum getType()
getType
in interface Message
getType
in class AbstractDsmlMessageDecorator<DeleteRequest>
public org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml
in interface DsmlDecorator<DeleteRequest>
toDsml
in class AbstractResultResponseRequestDsml<DeleteRequest,DeleteResponse>
root
- the root elementpublic void setEntry(Dn entry)
entry
- The entry to set.public MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
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 AbstractDsmlMessageDecorator<DeleteRequest>
messageId
- The message Idpublic DeleteRequest addControl(Control control)
addControl
in interface DeleteRequest
addControl
in interface Message
addControl
in class AbstractDsmlMessageDecorator<DeleteRequest>
control
- the control to add.public DeleteRequest addAllControls(Control[] controls)
addAllControls
in interface DeleteRequest
addAllControls
in interface Message
addAllControls
in class AbstractDsmlMessageDecorator<DeleteRequest>
controls
- the controls to add.public DeleteRequest removeControl(Control control)
removeControl
in interface DeleteRequest
removeControl
in interface Message
removeControl
in class AbstractDsmlMessageDecorator<DeleteRequest>
control
- the control to remove.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.