|
||||||||||
| 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.api.ControlDecorator<SyncInfoValue>
org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncInfoValueDecorator
public class SyncInfoValueDecorator
A syncInfoValue object, as defined in RFC 4533
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.codec.api.ControlDecorator |
|---|
value, valueLength |
| Fields inherited from interface org.apache.directory.shared.ldap.extras.controls.SyncInfoValue |
|---|
OID |
| Constructor Summary | |
|---|---|
SyncInfoValueDecorator(LdapApiService codec)
The constructor for this codec. |
|
SyncInfoValueDecorator(LdapApiService codec,
SynchronizationInfoEnum type)
The constructor for this codec. |
|
SyncInfoValueDecorator(LdapApiService codec,
SyncInfoValue control)
The constructor for this codec. |
|
| Method Summary | |
|---|---|
void |
addSyncUUID(byte[] syncUUID)
|
int |
computeLength()
Compute the SyncInfoValue length. |
Asn1Object |
decode(byte[] controlBytes)
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncInfoValue control |
byte[] |
getCookie()
|
List<byte[]> |
getSyncUUIDs()
|
SynchronizationInfoEnum |
getType()
|
byte[] |
getValue()
|
boolean |
isRefreshDeletes()
|
boolean |
isRefreshDone()
|
void |
setCookie(byte[] cookie)
|
void |
setRefreshDeletes(boolean refreshDeletes)
|
void |
setRefreshDone(boolean refreshDone)
|
void |
setSyncUUIDs(List<byte[]> syncUUIDs)
|
void |
setType(SynchronizationInfoEnum type)
|
| Methods inherited from class org.apache.directory.shared.ldap.codec.api.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 SyncInfoValueDecorator(LdapApiService codec)
public SyncInfoValueDecorator(LdapApiService codec,
SyncInfoValue control)
public SyncInfoValueDecorator(LdapApiService codec,
SynchronizationInfoEnum type)
type - The kind of syncInfo we will store. Can be newCookie,
refreshPresent, refreshDelete or syncIdSet| Method Detail |
|---|
public SynchronizationInfoEnum getType()
getType in interface SyncInfoValuepublic void setType(SynchronizationInfoEnum type)
setType in interface SyncInfoValuepublic byte[] getCookie()
getCookie in interface SyncInfoValuepublic void setCookie(byte[] cookie)
setCookie in interface SyncInfoValuepublic boolean isRefreshDone()
isRefreshDone in interface SyncInfoValuepublic void setRefreshDone(boolean refreshDone)
setRefreshDone in interface SyncInfoValuepublic boolean isRefreshDeletes()
isRefreshDeletes in interface SyncInfoValuepublic void setRefreshDeletes(boolean refreshDeletes)
setRefreshDeletes in interface SyncInfoValuepublic List<byte[]> getSyncUUIDs()
getSyncUUIDs in interface SyncInfoValuepublic void setSyncUUIDs(List<byte[]> syncUUIDs)
setSyncUUIDs in interface SyncInfoValuepublic void addSyncUUID(byte[] syncUUID)
addSyncUUID in interface SyncInfoValuepublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<SyncInfoValue>computeLength in class ControlDecorator<SyncInfoValue>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<SyncInfoValue>encode in class AbstractAsn1Objectbuffer - The encoded sink
EncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<SyncInfoValue>getValue in class ControlDecorator<SyncInfoValue>
public Asn1Object decode(byte[] controlBytes)
throws DecoderException
decode in interface CodecControl<SyncInfoValue>DecoderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||