public class SyncRequestValueDecorator extends ControlDecorator<SyncRequestValue> implements SyncRequestValue
| Modifier and Type | Field and Description |
|---|---|
private static Asn1Decoder |
DECODER
An instance of this decoder
|
private int |
syncRequestValueLength
The global length for this control
|
value, valueLengthOID| Constructor and Description |
|---|
SyncRequestValueDecorator(LdapApiService codec) |
SyncRequestValueDecorator(LdapApiService codec,
SyncRequestValue control) |
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the SyncRequestValue length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the SyncRequestValue control
|
byte[] |
getCookie() |
SynchronizationModeEnum |
getMode() |
byte[] |
getValue()
Get the control value
|
boolean |
isReloadHint() |
void |
setCookie(byte[] cookie) |
void |
setMode(SynchronizationModeEnum mode) |
void |
setReloadHint(boolean reloadHint) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOid, isCritical, setCriticalprivate int syncRequestValueLength
private static final Asn1Decoder DECODER
public SyncRequestValueDecorator(LdapApiService codec)
public SyncRequestValueDecorator(LdapApiService codec, SyncRequestValue control)
public SynchronizationModeEnum getMode()
getMode in interface SyncRequestValuepublic void setMode(SynchronizationModeEnum mode)
setMode in interface SyncRequestValuepublic byte[] getCookie()
getCookie in interface SyncRequestValuepublic void setCookie(byte[] cookie)
setCookie in interface SyncRequestValuecookie - the cookie to setpublic boolean isReloadHint()
isReloadHint in interface SyncRequestValuepublic void setReloadHint(boolean reloadHint)
setReloadHint in interface SyncRequestValuereloadHint - the reloadHint to setpublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<SyncRequestValue>computeLength in class ControlDecorator<SyncRequestValue>public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<SyncRequestValue>buffer - The encoded sinkEncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<SyncRequestValue>getValue in class ControlDecorator<SyncRequestValue>public Asn1Object decode(byte[] controlBytes) throws DecoderException
decode in interface CodecControl<SyncRequestValue>controlBytes - the encoded control bytesDecoderException - if anything goes wrong