public class DeleteRequestDecorator extends SingleReplyRequestDecorator<DeleteRequest> implements DeleteRequest
Constructor and Description |
---|
DeleteRequestDecorator(LdapApiService codec,
DeleteRequest decoratedMessage)
Makes a DeleteRequest a MessageDecorator.
|
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.
|
int |
computeLength()
Compute the DelRequest length
DelRequest : |
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.
|
abandon, addAbandonListener, getResponseType, isAbandoned
getResultResponse, hasResponse
get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getResponseType
getResultResponse
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
abandon, addAbandonListener, isAbandoned
public DeleteRequestDecorator(LdapApiService codec, DeleteRequest decoratedMessage)
codec
- The LDAP service instancedecoratedMessage
- the decorated DeleteRequestpublic 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 MessageDecorator<DeleteRequest>
messageId
- The message Idpublic DeleteRequest addControl(Control control)
addControl
in interface DeleteRequest
addControl
in interface Message
addControl
in class MessageDecorator<DeleteRequest>
control
- the control to add.public DeleteRequest addAllControls(Control[] controls)
addAllControls
in interface DeleteRequest
addAllControls
in interface Message
addAllControls
in class MessageDecorator<DeleteRequest>
controls
- the controls to add.public DeleteRequest removeControl(Control control)
removeControl
in interface DeleteRequest
removeControl
in interface Message
removeControl
in class MessageDecorator<DeleteRequest>
control
- the control to remove.public int computeLength()
0x4A L1 entry L1 = Length(entry) Length(DelRequest) = Length(0x4A) + Length(L1) + L1
computeLength
in interface Asn1Object
computeLength
in interface Decorator<DeleteRequest>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
0x4A LL entry
encode
in interface Asn1Object
encode
in interface Decorator<DeleteRequest>
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.