public class OpaqueControlFactory extends AbstractControlFactory<Control>
ControlFactory
implementation for opaque controls.Constructor and Description |
---|
OpaqueControlFactory(LdapApiService codec,
String oid)
Creates a new instance of OpaqueControlFactory.
|
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.
|
Control |
newControl()
Creates and returns a version of the Control.
|
decodeValue, getOid
public OpaqueControlFactory(LdapApiService codec, String oid)
codec
- The LDAP codec.oid
- The Control's OIDpublic Control newControl()
CodecControl
decorated version of the Control.public void encodeValue(Asn1Buffer buffer, Control control)
encodeValue
in interface ControlFactory<Control>
encodeValue
in class AbstractControlFactory<Control>
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<Control>
decodeValue
in class AbstractControlFactory<Control>
control
- The control to feedcontrolBytes
- The data to decodeDecoderException
- If the value can't be decodedCopyright © 2003–2021 The Apache Software Foundation. All rights reserved.