public class SyncDoneValueDecorator extends ControlDecorator<SyncDoneValue> implements SyncDoneValue
value, valueLength
OID
Constructor and Description |
---|
SyncDoneValueDecorator(LdapApiService codec)
Creates a new instance of SyncDoneValueControlCodec.
|
SyncDoneValueDecorator(LdapApiService codec,
SyncDoneValue control)
Creates a new instance of SyncDoneValueDecorator.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the syncDoneValue length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncDoneValue control
|
byte[] |
getCookie() |
byte[] |
getValue()
Get the control value
|
boolean |
isRefreshDeletes() |
void |
setCookie(byte[] cookie) |
void |
setRefreshDeletes(boolean refreshDeletes) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOid, isCritical, setCritical
public SyncDoneValueDecorator(LdapApiService codec)
public SyncDoneValueDecorator(LdapApiService codec, SyncDoneValue control)
codec
- The LDAP codeccontrol
- The control to be decoratedpublic int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface Decorator<SyncDoneValue>
computeLength
in class ControlDecorator<SyncDoneValue>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<SyncDoneValue>
encode
in class AbstractAsn1Object
buffer
- The encoded sinkEncoderException
- If anything goes wrong while encoding.public byte[] getValue()
getValue
in interface CodecControl<SyncDoneValue>
getValue
in class ControlDecorator<SyncDoneValue>
public byte[] getCookie()
getCookie
in interface SyncDoneValue
public void setCookie(byte[] cookie)
setCookie
in interface SyncDoneValue
cookie
- cookie to be setpublic boolean isRefreshDeletes()
isRefreshDeletes
in interface SyncDoneValue
public void setRefreshDeletes(boolean refreshDeletes)
setRefreshDeletes
in interface SyncDoneValue
refreshDeletes
- set the refreshDeletes flagpublic Asn1Object decode(byte[] controlBytes) throws DecoderException
decode
in interface CodecControl<SyncDoneValue>
controlBytes
- the encoded control bytesDecoderException
- if anything goes wrongCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.