public class UnbindRequestDecorator extends RequestDecorator<UnbindRequest> implements UnbindRequest
messageLength
TYPE
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
|
hasResponse
get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
public UnbindRequestDecorator(LdapApiService codec, UnbindRequest decoratedMessage)
decoratedMessage
- the decorated messagepublic UnbindRequest setMessageId(int messageId)
setMessageId
in interface Message
setMessageId
in interface UnbindRequest
setMessageId
in class MessageDecorator<UnbindRequest>
messageId
- The message Idpublic UnbindRequest addControl(Control control) throws MessageException
addControl
in interface Message
addControl
in interface UnbindRequest
addControl
in class MessageDecorator<UnbindRequest>
control
- the control to add.MessageException
- if controls cannot be added to this Message or the control is
not known etc.public UnbindRequest addAllControls(Control[] controls) throws MessageException
addAllControls
in interface Message
addAllControls
in interface UnbindRequest
addAllControls
in class MessageDecorator<UnbindRequest>
controls
- the controls to add.MessageException
- if controls cannot be added to this Message or they are not known etc.public UnbindRequest removeControl(Control control) throws MessageException
removeControl
in interface Message
removeControl
in interface UnbindRequest
removeControl
in class MessageDecorator<UnbindRequest>
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<UnbindRequest>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Decorator<UnbindRequest>
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.