public class DeleteRequestDecorator extends SingleReplyRequestDecorator<DeleteRequest> implements DeleteRequest
messageLength| 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 :
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.
|
abandon, addAbandonListener, getResponseType, isAbandonedgetResultResponse, hasResponseget, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetResponseTypegetResultResponsehasResponseget, getControl, getControls, getMessageId, getType, hasControl, putabandon, addAbandonListener, isAbandonedpublic DeleteRequestDecorator(LdapApiService codec, DeleteRequest decoratedMessage)
decoratedMessage - the decorated DeleteRequestpublic 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 Idpublic DeleteRequest addControl(Control control)
addControl in interface DeleteRequestaddControl in interface MessageaddControl in class MessageDecorator<DeleteRequest>control - the control to add.public DeleteRequest addAllControls(Control[] controls)
addAllControls in interface DeleteRequestaddAllControls in interface MessageaddAllControls in class MessageDecorator<DeleteRequest>controls - the controls to add.public DeleteRequest removeControl(Control control)
removeControl in interface DeleteRequestremoveControl in interface MessageremoveControl in class MessageDecorator<DeleteRequest>control - the control to remove.public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<DeleteRequest>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<DeleteRequest>buffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedCopyright © 2021. All rights reserved.