public class SyncDoneValueDecorator
extends org.apache.directory.api.ldap.codec.api.ControlDecorator<org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValue>
implements org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValue
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.directory.api.asn1.ber.Asn1Decoder |
DECODER
An instance of this decoder
|
private int |
syncDoneValueLength
The global length for this control
|
| Constructor and Description |
|---|
SyncDoneValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec)
Creates a new instance of SyncDoneValueControlCodec.
|
SyncDoneValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValue control)
Creates a new instance of SyncDoneValueDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the syncDoneValue length.
|
org.apache.directory.api.asn1.Asn1Object |
decode(byte[] controlBytes) |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncDoneValue control
|
byte[] |
getCookie() |
byte[] |
getValue() |
boolean |
isRefreshDeletes() |
void |
setCookie(byte[] cookie) |
void |
setRefreshDeletes(boolean refreshDeletes) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringprivate int syncDoneValueLength
private static final org.apache.directory.api.asn1.ber.Asn1Decoder DECODER
public SyncDoneValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec)
codec - The LDAP Service to usepublic SyncDoneValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValue control)
codec - The LDAP codeccontrol - The control to be decoratedpublic int computeLength()
0x30 L1 | +--> 0x04 L2 xkcd!!!... (cookie) +--> 0x01 0x01 [0x00|0xFF] (refreshDeletes)
computeLength in interface org.apache.directory.api.asn1.Asn1Objectpublic ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode in interface org.apache.directory.api.asn1.Asn1Objectbuffer - The encoded sinkorg.apache.directory.api.asn1.EncoderException - If anything goes wrong while encoding.public byte[] getValue()
getValue in interface org.apache.directory.api.ldap.codec.api.CodecControl<org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValue>getValue in class org.apache.directory.api.ldap.codec.api.ControlDecorator<org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValue>public byte[] getCookie()
getCookie in interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValuepublic void setCookie(byte[] cookie)
setCookie in interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValuepublic boolean isRefreshDeletes()
isRefreshDeletes in interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValuepublic void setRefreshDeletes(boolean refreshDeletes)
setRefreshDeletes in interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValuepublic org.apache.directory.api.asn1.Asn1Object decode(byte[] controlBytes)
throws org.apache.directory.api.asn1.DecoderException
decode in interface org.apache.directory.api.ldap.codec.api.CodecControl<org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValue>org.apache.directory.api.asn1.DecoderExceptionCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.