public class ModifyResponseDecorator extends ResponseDecorator<ModifyResponse> implements ModifyResponse
messageLength
TYPE
Constructor and Description |
---|
ModifyResponseDecorator(LdapApiService codec,
ModifyResponse decoratedMessage)
Makes a ModifyResponse encodable.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the ModifyResponse length
ModifyResponse :
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the ModifyResponse message to a PDU.
|
int |
getModifyResponseLength() |
void |
setModifyResponseLength(int modifyResponseLength)
Stores the encoded length for the ModifyResponse
|
getLdapResult, setLdapResult
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLdapResult
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
public ModifyResponseDecorator(LdapApiService codec, ModifyResponse decoratedMessage)
decoratedMessage
- the decorated ModifyResponsepublic void setModifyResponseLength(int modifyResponseLength)
modifyResponseLength
- The encoded lengthpublic int getModifyResponseLength()
public int computeLength()
0x67 L1 | +--> LdapResult L1 = Length(LdapResult) Length(ModifyResponse) = Length(0x67) + Length(L1) + L1
computeLength
in interface Decorator<ModifyResponse>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Decorator<ModifyResponse>
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.