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