public class ModifyDnResponseDecorator extends ResponseDecorator<ModifyDnResponse> implements ModifyDnResponse
messageLength
Constructor and Description |
---|
ModifyDnResponseDecorator(LdapApiService codec,
ModifyDnResponse decoratedMessage)
Makes a ModifyDnResponse encodable.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the ModifyDNResponse length
ModifyDNResponse :
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the ModifyDnResponse message to a PDU.
|
int |
getModifyDnResponseLength()
Stores the encoded length for the ModifyDnResponse
|
void |
setModifyDnResponseLength(int modifyDnResponseLength) |
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 ModifyDnResponseDecorator(LdapApiService codec, ModifyDnResponse decoratedMessage)
decoratedMessage
- the decorated ModifyDnResponsepublic void setModifyDnResponseLength(int modifyDnResponseLength)
modifyDnResponseLength
- The encoded ModifyDnResponse's lengthpublic int getModifyDnResponseLength()
public int computeLength()
0x6D L1 | +--> LdapResult L1 = Length(LdapResult) Length(ModifyDNResponse) = Length(0x6D) + Length(L1) + L1
computeLength
in interface Asn1Object
computeLength
in interface Decorator<ModifyDnResponse>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<ModifyDnResponse>
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.