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
| Constructor and Description |
|---|
SyncStateValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec) |
SyncStateValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue value) |
| 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, toStringpublic SyncStateValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec)
public SyncStateValueDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue value)
public 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()
computeLength in interface org.apache.directory.api.asn1.Asn1ObjectcomputeLength in interface org.apache.directory.api.ldap.codec.api.Decorator<org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue>computeLength in class org.apache.directory.api.ldap.codec.api.ControlDecorator<org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue>public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode in interface org.apache.directory.api.asn1.Asn1Objectencode in interface org.apache.directory.api.ldap.codec.api.Decorator<org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValue>buffer - 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–2016 The Apache Software Foundation. All rights reserved.