|
||||||||||
| 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<AbandonRequest>
org.apache.directory.api.ldap.codec.decorators.AbandonRequestDecorator
public final class AbandonRequestDecorator
A decorator for the AddRequest 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.AbandonRequest |
|---|
TYPE |
| Constructor Summary | |
|---|---|
AbandonRequestDecorator(LdapApiService codec,
AbandonRequest decoratedMessage)
Makes a AddRequest a MessageDecorator. |
|
| Method Summary | |
|---|---|
AbandonRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message. |
AbandonRequest |
addControl(Control control)
Adds a control to this Message. |
int |
computeLength()
Compute the AbandonRequest length AbandonRequest : 0x50 0x0(1..4) abandoned MessageId Length(AbandonRequest) = Length(0x50) + 1 + Length(abandoned MessageId) |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the Abandon protocolOp part |
int |
getAbandoned()
Gets the id of the request operation to terminate. |
AbandonRequest |
removeControl(Control control)
Deletes a control removing it from this Message. |
AbandonRequest |
setAbandoned(int requestId)
Sets the id of the request operation to terminate. |
AbandonRequest |
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 AbandonRequestDecorator(LdapApiService codec,
AbandonRequest decoratedMessage)
decoratedMessage - the decorated AddRequest| Method Detail |
|---|
public int getAbandoned()
getAbandoned in interface AbandonRequestpublic AbandonRequest setAbandoned(int requestId)
setAbandoned in interface AbandonRequestrequestId - the sequence id of the request message to abandon
public AbandonRequest setMessageId(int messageId)
setMessageId in interface MessagesetMessageId in class MessageDecorator<AbandonRequest>messageId - The message Id
public AbandonRequest addControl(Control control)
throws MessageException
addControl in interface MessageaddControl in class MessageDecorator<AbandonRequest>control - the control to add.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
public AbandonRequest addAllControls(Control[] controls)
throws MessageException
addAllControls in interface MessageaddAllControls in class MessageDecorator<AbandonRequest>controls - the controls to add.
MessageException - if controls cannot be added to this Message or they are not known etc.
public AbandonRequest removeControl(Control control)
throws MessageException
removeControl in interface MessageremoveControl in class MessageDecorator<AbandonRequest>control - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Decorator<AbandonRequest>buffer - The buffer where to put the PDU
EncoderException - if the buffer can't be encodedpublic int computeLength()
computeLength in interface Decorator<AbandonRequest>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||