public class SyncStateValueDecorator
extends org.apache.directory.api.ldap.codec.api.ControlDecorator<org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue>
implements org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.directory.api.asn1.ber.Asn1Decoder |
DECODER
An instance of this decoder
|
private int |
syncStateSeqLength
Global length for the control
|
| Constructor and Description |
|---|
SyncStateValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec)
Creates a new instance of SyncStateValueDecorator.
|
SyncStateValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue value)
Creates a new instance of SyncStateValueDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the SyncStateValue length.
|
org.apache.directory.api.asn1.Asn1Object |
decode(byte[] controlBytes) |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncStateValue control
|
byte[] |
getCookie() |
byte[] |
getEntryUUID() |
org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateTypeEnum |
getSyncStateType() |
byte[] |
getValue() |
void |
setCookie(byte[] cookie) |
void |
setEntryUUID(byte[] entryUUID) |
void |
setSyncStateType(org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateTypeEnum syncStateType) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringprivate int syncStateSeqLength
private static final org.apache.directory.api.asn1.ber.Asn1Decoder DECODER
public SyncStateValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec)
codec - The LDAP Service to usepublic SyncStateValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue value)
codec - The LDAP Service to usevalue - The SyncState value to usepublic byte[] getCookie()
getCookie in interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValuepublic void setCookie(byte[] cookie)
setCookie in interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValuepublic org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateTypeEnum getSyncStateType()
getSyncStateType in interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValuepublic void setSyncStateType(org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateTypeEnum syncStateType)
setSyncStateType in interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValuepublic byte[] getEntryUUID()
getEntryUUID in interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValuepublic void setEntryUUID(byte[] entryUUID)
setEntryUUID in interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValuepublic int computeLength()
0x30 L1 | +--> 0x0A 0x01 [0x00|0x01|0x02|0x03] (type) [+--> 0x04 L2 abcd... (entryUUID) [+--> 0x04 L3 abcd... (cookie)
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.public byte[] getValue()
getValue in interface org.apache.directory.api.ldap.codec.api.CodecControl<org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue>getValue in class org.apache.directory.api.ldap.codec.api.ControlDecorator<org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue>public 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.syncState.SyncStateValue>org.apache.directory.api.asn1.DecoderExceptionCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.