|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator<E>
org.apache.directory.api.dsmlv2.request.AbstractRequestDsml<E>
org.apache.directory.api.dsmlv2.request.AbstractResultResponseRequestDsml<DeleteRequest,DeleteResponse>
org.apache.directory.api.dsmlv2.request.DelRequestDsml
public class DelRequestDsml
DSML Decorator for DeleteRequest
| Field Summary |
|---|
| Fields inherited from interface org.apache.directory.api.ldap.model.message.DeleteRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
DelRequestDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of DelRequestDsml. |
|
DelRequestDsml(LdapApiService codec,
DeleteRequest ldapMessage)
Creates a new getDecoratedMessage() of DelRequestDsml. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.directory.api.dsmlv2.request.AbstractResultResponseRequestDsml |
|---|
abandon, addAbandonListener, computeLength, encode, getResultResponse, isAbandoned |
| Methods inherited from class org.apache.directory.api.dsmlv2.request.AbstractRequestDsml |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator |
|---|
get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, put |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest |
|---|
getResultResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Message |
|---|
get, getControl, getControls, getMessageId, hasControl, put |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public DelRequestDsml(LdapApiService codec)
public DelRequestDsml(LdapApiService codec,
DeleteRequest ldapMessage)
ldapMessage - the message to decorate| Method Detail |
|---|
public MessageTypeEnum getType()
getType in interface MessagegetType 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 element
public Dn getEntry()
public void setEntry(Dn entry)
entry - The entry to set.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequest<DeleteResponse>public Dn getName()
getName in interface DeleteRequestpublic DeleteRequest setName(Dn name)
setName in interface DeleteRequestname - the Dn of the leaf entry to delete.
public DeleteRequest setMessageId(int messageId)
setMessageId in interface DeleteRequestsetMessageId in interface MessagesetMessageId in class AbstractDsmlMessageDecorator<DeleteRequest>messageId - The message Id
public DeleteRequest addControl(Control control)
throws MessageException
addControl in interface DeleteRequestaddControl in interface MessageaddControl in class AbstractDsmlMessageDecorator<DeleteRequest>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 DeleteRequestaddAllControls in interface MessageaddAllControls in class AbstractDsmlMessageDecorator<DeleteRequest>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 DeleteRequestremoveControl in interface MessageremoveControl in class AbstractDsmlMessageDecorator<DeleteRequest>control - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||