public class AddResponseDecorator extends ResponseDecorator<AddResponse> implements AddResponse
messageLength
Constructor and Description |
---|
AddResponseDecorator(LdapApiService codec,
AddResponse decoratedMessage)
Makes a AddResponse a MessageDecorator.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the AddResponse length
AddResponse :
0x69 L1
|
+--> LdapResult
L1 = Length(LdapResult)
Length(AddResponse) = Length(0x69) + Length(L1) + L1
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the AddResponse message to a PDU.
|
AddResponse |
getAddResponse() |
int |
getAddResponseLength() |
void |
setAddResponseLength(int addResponseLength)
Stores the encoded length for the AddResponse
|
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 AddResponseDecorator(LdapApiService codec, AddResponse decoratedMessage)
decoratedMessage
- the decorated AddResponsepublic AddResponse getAddResponse()
public void setAddResponseLength(int addResponseLength)
addResponseLength
- The encoded lengthpublic int getAddResponseLength()
public int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface Decorator<AddResponse>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<AddResponse>
buffer
- The buffer where to put the PDUaddResponseDecorator
- the AddResponse decoratorEncoderException
- if the buffer can't be encodedCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.