|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.controls.ControlDecorator<SyncDoneValue>
org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator
public class SyncDoneValueDecorator
A syncDoneValue object as described in rfc4533.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.codec.controls.ControlDecorator |
|---|
value, valueLength |
| Fields inherited from interface org.apache.directory.shared.ldap.extras.controls.SyncDoneValue |
|---|
OID |
| Constructor Summary | |
|---|---|
SyncDoneValueDecorator(LdapCodecService codec)
Creates a new instance of SyncDoneValueControlCodec. |
|
SyncDoneValueDecorator(LdapCodecService codec,
SyncDoneValue control)
Creates a new instance of SyncDoneValueDecorator. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.directory.shared.ldap.codec.controls.ControlDecorator |
|---|
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Control |
|---|
getOid, isCritical, setCritical |
| Constructor Detail |
|---|
public SyncDoneValueDecorator(LdapCodecService codec)
public SyncDoneValueDecorator(LdapCodecService codec,
SyncDoneValue control)
codec - The LDAP codeccontrol - The control to be decorated| Method Detail |
|---|
public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<SyncDoneValue>computeLength in class ControlDecorator<SyncDoneValue>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<SyncDoneValue>encode in class AbstractAsn1Objectbuffer - The encoded sink
EncoderException - 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 SyncDoneValuepublic void setCookie(byte[] cookie)
setCookie in interface SyncDoneValuecookie - cookie to be setpublic boolean isRefreshDeletes()
isRefreshDeletes in interface SyncDoneValuepublic void setRefreshDeletes(boolean refreshDeletes)
setRefreshDeletes in interface SyncDoneValuerefreshDeletes - set the refreshDeletes flag
public Asn1Object decode(byte[] controlBytes)
throws DecoderException
decode in interface CodecControl<SyncDoneValue>controlBytes - the encoded control bytes
DecoderException - if anything goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||