|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.codec.api.MessageDecorator<M>
org.apache.directory.api.ldap.codec.decorators.RequestDecorator<M>
org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator<M,R>
org.apache.directory.api.ldap.codec.decorators.SingleReplyRequestDecorator<DeleteRequest,DeleteResponse>
org.apache.directory.api.ldap.codec.decorators.DeleteRequestDecorator
public class DeleteRequestDecorator
A decorator for the DeleteRequest message
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator |
|---|
messageLength |
| Fields inherited from interface org.apache.directory.api.ldap.model.message.DeleteRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
DeleteRequestDecorator(LdapApiService codec,
DeleteRequest decoratedMessage)
Makes a DeleteRequest a MessageDecorator. |
|
| Method Summary | |
|---|---|
DeleteRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message. |
DeleteRequest |
addControl(Control control)
Adds a control to this Message. |
int |
computeLength()
Compute the DelRequest length DelRequest : 0x4A L1 entry L1 = Length(entry) Length(DelRequest) = Length(0x4A) + Length(L1) + L1 |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the DelRequest message to a PDU. |
Dn |
getName()
Gets the distinguished name of the leaf entry to be deleted by this request. |
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. |
| Methods inherited from class org.apache.directory.api.ldap.codec.decorators.SingleReplyRequestDecorator |
|---|
abandon, addAbandonListener, getResponseType, isAbandoned |
| Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ResultResponseRequestDecorator |
|---|
getResultResponse, hasResponse |
| Methods inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator |
|---|
get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest |
|---|
getResponseType |
| 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, getType, hasControl, put |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public DeleteRequestDecorator(LdapApiService codec,
DeleteRequest decoratedMessage)
decoratedMessage - the decorated DeleteRequest| Method Detail |
|---|
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 MessageDecorator<DeleteRequest>messageId - The message Id
public DeleteRequest addControl(Control control)
throws MessageException
addControl in interface DeleteRequestaddControl in interface MessageaddControl in class MessageDecorator<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 MessageDecorator<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 MessageDecorator<DeleteRequest>control - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.public int computeLength()
computeLength in interface Decorator<DeleteRequest>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Decorator<DeleteRequest>buffer - The buffer where to put the PDU
EncoderException - if the buffer can't be encoded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||