public class SyncRequestValueDecorator extends ControlDecorator<SyncRequestValue> implements SyncRequestValue
value, valueLength
OID
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.
|
ByteBuffer |
encode(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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOid, isCritical, setCritical
public SyncRequestValueDecorator(LdapApiService codec)
public SyncRequestValueDecorator(LdapApiService codec, SyncRequestValue control)
public SynchronizationModeEnum getMode()
getMode
in interface SyncRequestValue
public void setMode(SynchronizationModeEnum mode)
setMode
in interface SyncRequestValue
public byte[] getCookie()
getCookie
in interface SyncRequestValue
public void setCookie(byte[] cookie)
setCookie
in interface SyncRequestValue
cookie
- the cookie to setpublic boolean isReloadHint()
isReloadHint
in interface SyncRequestValue
public void setReloadHint(boolean reloadHint)
setReloadHint
in interface SyncRequestValue
reloadHint
- the reloadHint to setpublic int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface Decorator<SyncRequestValue>
computeLength
in class ControlDecorator<SyncRequestValue>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
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 wrongCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.