public class SortResponseDecorator extends ControlDecorator<SortResponse> implements SortResponse
value, valueLengthOID| Constructor and Description |
|---|
SortResponseDecorator(LdapApiService codec)
Creates a new instance of SortResponseDecorator.
|
SortResponseDecorator(LdapApiService codec,
SortResponse control)
Creates a new instance of SortResponseDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the object length, which is the sum of all inner length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the object to a PDU.
|
String |
getAttributeName() |
SortResultCode |
getSortResult() |
byte[] |
getValue()
Get the control value
|
void |
setAttributeName(String attributeName)
sets the name of the first offending attribute
|
void |
setSortResult(SortResultCode result)
sets the sort result
|
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOid, isCritical, setCriticalpublic SortResponseDecorator(LdapApiService codec)
codec - the LDAP codecpublic SortResponseDecorator(LdapApiService codec, SortResponse control)
codec - the LDAP codeccontrol - the sort response controlpublic int computeLength()
ControlDecoratorcomputeLength in interface Asn1ObjectcomputeLength in interface Decorator<SortResponse>computeLength in class ControlDecorator<SortResponse>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Decoratorencode in interface Asn1Objectencode in interface Decorator<SortResponse>buffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedpublic Asn1Object decode(byte[] controlBytes) throws DecoderException
decode in interface CodecControl<SortResponse>controlBytes - the encoded control bytesDecoderException - if anything goes wrongpublic byte[] getValue()
getValue in interface CodecControl<SortResponse>getValue in class ControlDecorator<SortResponse>public void setSortResult(SortResultCode result)
SortResponsesetSortResult in interface SortResponsepublic SortResultCode getSortResult()
getSortResult in interface SortResponsepublic void setAttributeName(String attributeName)
SortResponsesetAttributeName in interface SortResponsepublic String getAttributeName()
getAttributeName in interface SortResponseCopyright © 2021. All rights reserved.