public final class AbandonRequestDecorator extends RequestDecorator<AbandonRequest> implements AbandonRequest
messageLength
TYPE
Constructor and Description |
---|
AbandonRequestDecorator(LdapApiService codec,
AbandonRequest decoratedMessage)
Makes a AddRequest a MessageDecorator.
|
Modifier and Type | Method and Description |
---|---|
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
|
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 AbandonRequestDecorator(LdapApiService codec, AbandonRequest decoratedMessage)
decoratedMessage
- the decorated AddRequestpublic int getAbandoned()
getAbandoned
in interface AbandonRequest
public AbandonRequest setAbandoned(int requestId)
setAbandoned
in interface AbandonRequest
requestId
- the sequence id of the request message to abandonpublic AbandonRequest setMessageId(int messageId)
setMessageId
in interface AbandonRequest
setMessageId
in interface Message
setMessageId
in class MessageDecorator<AbandonRequest>
messageId
- The message Idpublic AbandonRequest addControl(Control control) throws MessageException
addControl
in interface AbandonRequest
addControl
in interface Message
addControl
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 AbandonRequest
addAllControls
in interface Message
addAllControls
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 AbandonRequest
removeControl
in interface Message
removeControl
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 PDUEncoderException
- if the buffer can't be encodedpublic int computeLength()
computeLength
in interface Decorator<AbandonRequest>
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.