|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CodecControl<E extends Control>
The codec uses this interface to add additional information to LDAP Model Control objects during encoding and decoding.
| Method Summary | |
|---|---|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control. |
byte[] |
getValue()
Gets the binary ASN.1 BER encoded representation of the control. |
boolean |
hasValue()
Checks to see if a value is set for this CodecControl. |
void |
setValue(byte[] value)
Set the Control's encoded control value. |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Control |
|---|
getOid, isCritical, setCritical |
| Methods inherited from interface org.apache.directory.shared.ldap.codec.api.Decorator |
|---|
computeLength, encode, getCodecService, getDecorated |
| Method Detail |
|---|
Asn1Object decode(byte[] controlBytes)
throws DecoderException
controlBytes - the encoded control bytes
DecoderException - if anything goes wrongboolean hasValue()
CodecControl.
byte[] getValue()
void setValue(byte[] value)
value - The encoded control value to store.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||