|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.codec.api.MessageDecorator<M>
org.apache.directory.api.ldap.codec.decorators.RequestDecorator<UnbindRequest>
org.apache.directory.api.ldap.codec.decorators.UnbindRequestDecorator
public class UnbindRequestDecorator
A decorator for the LdapResultResponse message
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator |
|---|
messageLength |
| Fields inherited from interface org.apache.directory.api.ldap.model.message.UnbindRequest |
|---|
TYPE |
| Constructor Summary | |
|---|---|
UnbindRequestDecorator(LdapApiService codec,
UnbindRequest decoratedMessage)
Makes Request a MessageDecorator. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.apache.directory.api.ldap.codec.decorators.RequestDecorator |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator |
|---|
get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Message |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put |
| Constructor Detail |
|---|
public UnbindRequestDecorator(LdapApiService codec,
UnbindRequest decoratedMessage)
decoratedMessage - the decorated message| Method Detail |
|---|
public UnbindRequest setMessageId(int messageId)
setMessageId in interface MessagesetMessageId in interface UnbindRequestsetMessageId in class MessageDecorator<UnbindRequest>messageId - The message Id
public UnbindRequest addControl(Control control)
throws MessageException
addControl in interface MessageaddControl in interface UnbindRequestaddControl 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 MessageaddAllControls in interface UnbindRequestaddAllControls 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 MessageremoveControl in interface UnbindRequestremoveControl 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 PDU
EncoderException - if the buffer can't be encoded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||