public class SortResponseFactory extends AbstractControlFactory<SortResponse>
ControlFactory
for SortResponseControl.Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE_TYPE_TAG
ASN.1 BER tag for the AttriubteType
|
Constructor and Description |
---|
SortResponseFactory(LdapApiService codec)
Creates a new instance of SortResponseFactory.
|
Modifier and Type | Method and Description |
---|---|
void |
decodeValue(Control control,
byte[] controlBytes)
Decode a Control's value.
|
void |
encodeValue(Asn1Buffer buffer,
Control control)
Encode the value part of the control.
|
SortResponse |
newControl()
Creates and returns a version of the Control.
|
decodeValue, getOid
public static final int ATTRIBUTE_TYPE_TAG
public SortResponseFactory(LdapApiService codec)
codec
- The LDAP codec.public SortResponse newControl()
CodecControl
decorated version of the Control.public void encodeValue(Asn1Buffer buffer, Control control)
encodeValue
in interface ControlFactory<SortResponse>
encodeValue
in class AbstractControlFactory<SortResponse>
buffer
- The buffer into which to put the encoded valuecontrol
- The control to encodepublic void decodeValue(Control control, byte[] controlBytes) throws DecoderException
decodeValue
in interface ControlFactory<SortResponse>
decodeValue
in class AbstractControlFactory<SortResponse>
control
- The control to feedcontrolBytes
- The data to decodeDecoderException
- If the value can't be decodedCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.