public class UnbindRequestDecorator extends RequestDecorator<UnbindRequest> implements UnbindRequest
messageLength| Constructor and Description |
|---|
UnbindRequestDecorator(LdapApiService codec,
UnbindRequest decoratedMessage)
Makes Request a MessageDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
UnbindRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message.
|
UnbindRequest |
addControl(Control control)
Adds a control to this Message.
|
int |
computeLength()
Compute the UnBindRequest length
UnBindRequest :
0x42 00
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the Unbind protocolOp part
|
UnbindRequest |
removeControl(Control control)
Deletes a control removing it from this Message.
|
UnbindRequest |
setMessageId(int messageId)
Sets the Message ID for this request
|
hasResponseget, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasResponseget, getControl, getControls, getMessageId, getType, hasControl, putpublic UnbindRequestDecorator(LdapApiService codec, UnbindRequest decoratedMessage)
decoratedMessage - the decorated messagepublic UnbindRequest setMessageId(int messageId)
setMessageId in interface MessagesetMessageId in interface UnbindRequestsetMessageId in class MessageDecorator<UnbindRequest>messageId - The message Idpublic UnbindRequest addControl(Control control)
addControl in interface MessageaddControl in interface UnbindRequestaddControl in class MessageDecorator<UnbindRequest>control - the control to add.public UnbindRequest addAllControls(Control[] controls)
addAllControls in interface MessageaddAllControls in interface UnbindRequestaddAllControls in class MessageDecorator<UnbindRequest>controls - the controls to add.public UnbindRequest removeControl(Control control)
removeControl in interface MessageremoveControl in interface UnbindRequestremoveControl in class MessageDecorator<UnbindRequest>control - the control to remove.public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<UnbindRequest>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<UnbindRequest>buffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedCopyright © 2021. All rights reserved.