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.
|
boolean |
isTrue() |
getLdapResult, setLdapResultaddAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLdapResultaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdpublic CompareResponseDecorator(LdapApiService codec, CompareResponse decoratedMessage)
decoratedMessage - the decorated CompareResponsepublic boolean isTrue()
isTrue in interface CompareResponsepublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<CompareResponse>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<CompareResponse>buffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedCopyright © 2021. All rights reserved.