public class AddResponseDecorator extends ResponseDecorator<AddResponse> implements AddResponse
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 : |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the AddResponse message to a PDU.
|
AddResponse |
getAddResponse() |
getLdapResult, setLdapResult
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
equals, 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)
codec
- The LDAP service instancedecoratedMessage
- the decorated AddResponsepublic AddResponse getAddResponse()
public int computeLength()
0x69 L1 | +--> LdapResult L1 = Length(LdapResult) Length(AddResponse) = Length(0x69) + Length(L1) + L1
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 PDUEncoderException
- If teh encoding failedCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.