|
||||||||||
| 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<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.controls.ControlDecorator |
|---|
value, valueLength |
| Fields inherited from interface org.apache.directory.shared.ldap.extras.controls.SyncInfoValue |
|---|
OID |
| Constructor Summary | |
|---|---|
SyncInfoValueDecorator(LdapCodecService codec)
The constructor for this codec. |
|
SyncInfoValueDecorator(LdapCodecService codec,
SynchronizationInfoEnum type)
The constructor for this codec. |
|
SyncInfoValueDecorator(LdapCodecService codec,
SyncInfoValue control)
The constructor for this codec. |
|
| Method Summary | |
|---|---|
void |
addSyncUUID(byte[] syncUUID)
|
int |
computeLength()
Compute the SyncInfoValue length. |
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control. |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncInfoValue control |
byte[] |
getCookie()
|
List<byte[]> |
getSyncUUIDs()
|
SynchronizationInfoEnum |
getType()
Get the control type. |
byte[] |
getValue()
Get the control value |
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.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 SyncInfoValueDecorator(LdapCodecService codec)
public SyncInfoValueDecorator(LdapCodecService codec,
SyncInfoValue control)
public SyncInfoValueDecorator(LdapCodecService 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 SyncInfoValuecookie - the cookie to setpublic boolean isRefreshDone()
isRefreshDone in interface SyncInfoValuepublic void setRefreshDone(boolean refreshDone)
setRefreshDone in interface SyncInfoValuerefreshDone - the refreshDone to setpublic boolean isRefreshDeletes()
isRefreshDeletes in interface SyncInfoValuepublic void setRefreshDeletes(boolean refreshDeletes)
setRefreshDeletes in interface SyncInfoValuerefreshDeletes - the refreshDeletes to setpublic List<byte[]> getSyncUUIDs()
getSyncUUIDs in interface SyncInfoValuepublic void setSyncUUIDs(List<byte[]> syncUUIDs)
setSyncUUIDs in interface SyncInfoValuesyncUUIDs - the syncUUIDs to setpublic 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>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 | |||||||||