public class SyncStateValueDecorator extends ControlDecorator<SyncStateValue> implements SyncStateValue
value, valueLengthOID| Constructor and Description |
|---|
SyncStateValueDecorator(LdapApiService codec) |
SyncStateValueDecorator(LdapApiService codec,
SyncStateValue value) |
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the SyncStateValue length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncStateValue control
|
byte[] |
getCookie() |
byte[] |
getEntryUUID() |
SyncStateTypeEnum |
getSyncStateType() |
byte[] |
getValue()
Get the control value
|
void |
setCookie(byte[] cookie) |
void |
setEntryUUID(byte[] entryUUID)
set the entryUUID
|
void |
setSyncStateType(SyncStateTypeEnum syncStateType)
set the syncState's type
|
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOid, isCritical, setCriticalpublic SyncStateValueDecorator(LdapApiService codec)
public SyncStateValueDecorator(LdapApiService codec, SyncStateValue value)
public byte[] getCookie()
getCookie in interface SyncStateValuepublic void setCookie(byte[] cookie)
setCookie in interface SyncStateValuecookie - the cookie to setpublic SyncStateTypeEnum getSyncStateType()
getSyncStateType in interface SyncStateValuepublic void setSyncStateType(SyncStateTypeEnum syncStateType)
setSyncStateType in interface SyncStateValuesyncStateType - the syncState's typepublic byte[] getEntryUUID()
getEntryUUID in interface SyncStateValuepublic void setEntryUUID(byte[] entryUUID)
setEntryUUID in interface SyncStateValueentryUUID - the entryUUIDpublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<SyncStateValue>computeLength in class ControlDecorator<SyncStateValue>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<SyncStateValue>buffer - The encoded sinkEncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<SyncStateValue>getValue in class ControlDecorator<SyncStateValue>public Asn1Object decode(byte[] controlBytes) throws DecoderException
decode in interface CodecControl<SyncStateValue>controlBytes - the encoded control bytesDecoderException - if anything goes wrongCopyright © 2021. All rights reserved.