public class SyncDoneValueDecorator extends ControlDecorator<SyncDoneValue> implements SyncDoneValue
value, valueLengthOID| Constructor and Description |
|---|
SyncDoneValueDecorator(LdapApiService codec)
Creates a new instance of SyncDoneValueControlCodec.
|
SyncDoneValueDecorator(LdapApiService codec,
SyncDoneValue control)
Creates a new instance of SyncDoneValueDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the syncDoneValue length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncDoneValue control
|
byte[] |
getCookie() |
byte[] |
getValue()
Get the control value
|
boolean |
isRefreshDeletes() |
void |
setCookie(byte[] cookie) |
void |
setRefreshDeletes(boolean refreshDeletes) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOid, isCritical, setCriticalpublic SyncDoneValueDecorator(LdapApiService codec)
public SyncDoneValueDecorator(LdapApiService codec, SyncDoneValue control)
codec - The LDAP codeccontrol - The control to be decoratedpublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<SyncDoneValue>computeLength in class ControlDecorator<SyncDoneValue>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<SyncDoneValue>buffer - The encoded sinkEncoderException - If anything goes wrong while encoding.public byte[] getValue()
getValue in interface CodecControl<SyncDoneValue>getValue in class ControlDecorator<SyncDoneValue>public byte[] getCookie()
getCookie in interface SyncDoneValuepublic void setCookie(byte[] cookie)
setCookie in interface SyncDoneValuecookie - cookie to be setpublic boolean isRefreshDeletes()
isRefreshDeletes in interface SyncDoneValuepublic void setRefreshDeletes(boolean refreshDeletes)
setRefreshDeletes in interface SyncDoneValuerefreshDeletes - set the refreshDeletes flagpublic Asn1Object decode(byte[] controlBytes) throws DecoderException
decode in interface CodecControl<SyncDoneValue>controlBytes - the encoded control bytesDecoderException - if anything goes wrongCopyright © 2021. All rights reserved.