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