public class SyncStateValueDecorator extends ControlDecorator<SyncStateValue> implements SyncStateValue
value, valueLength
OID
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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOid, isCritical, setCritical
public SyncStateValueDecorator(LdapApiService codec)
public SyncStateValueDecorator(LdapApiService codec, SyncStateValue value)
public byte[] getCookie()
getCookie
in interface SyncStateValue
public void setCookie(byte[] cookie)
setCookie
in interface SyncStateValue
cookie
- the cookie to setpublic SyncStateTypeEnum getSyncStateType()
getSyncStateType
in interface SyncStateValue
public void setSyncStateType(SyncStateTypeEnum syncStateType)
setSyncStateType
in interface SyncStateValue
syncStateType
- the syncState's typepublic byte[] getEntryUUID()
getEntryUUID
in interface SyncStateValue
public void setEntryUUID(byte[] entryUUID)
setEntryUUID
in interface SyncStateValue
entryUUID
- the entryUUIDpublic int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface Decorator<SyncStateValue>
computeLength
in class ControlDecorator<SyncStateValue>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
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 © 2003–2014 The Apache Software Foundation. All rights reserved.