public class UnbindRequestDecorator extends RequestDecorator<UnbindRequest> implements UnbindRequest
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 : |
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
public UnbindRequestDecorator(LdapApiService codec, UnbindRequest decoratedMessage)
codec
- The LDAP service instancedecoratedMessage
- 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)
addControl
in interface Message
addControl
in interface UnbindRequest
addControl
in class MessageDecorator<UnbindRequest>
control
- the control to add.public UnbindRequest addAllControls(Control[] controls)
addAllControls
in interface Message
addAllControls
in interface UnbindRequest
addAllControls
in class MessageDecorator<UnbindRequest>
controls
- the controls to add.public UnbindRequest removeControl(Control control)
removeControl
in interface Message
removeControl
in interface UnbindRequest
removeControl
in class MessageDecorator<UnbindRequest>
control
- the control to remove.public int computeLength()
0x42 00
computeLength
in interface Asn1Object
computeLength
in interface Decorator<UnbindRequest>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<UnbindRequest>
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.