|
||||||||||
| 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.AbstractControl
org.apache.directory.shared.ldap.codec.controls.replication.syncInfoValue.SyncInfoValueControl
public class SyncInfoValueControl
A syncInfoValue object, as defined in RFC 4533
| Field Summary | |
|---|---|
static java.lang.String |
CONTROL_OID
This control OID |
| Fields inherited from class org.apache.directory.shared.ldap.codec.controls.AbstractControl |
|---|
decoder, value, valueLength |
| Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
parent |
| Constructor Summary | |
|---|---|
SyncInfoValueControl(SynchronizationInfoEnum type)
The constructor for this codec. |
|
| Method Summary | |
|---|---|
void |
addSyncUUID(byte[] syncUUID)
|
int |
computeLength()
Compute the SyncInfoValue length. |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the SyncInfoValue control |
byte[] |
getCookie()
|
java.util.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(java.util.List<byte[]> syncUUIDs)
|
void |
setType(SynchronizationInfoEnum type)
|
java.lang.String |
toString()
Return a String representing a Control |
| Methods inherited from class org.apache.directory.shared.ldap.codec.controls.AbstractControl |
|---|
computeLength, getDecoder, getOid, hasValue, isCritical, setCritical, setValue |
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTROL_OID
| Constructor Detail |
|---|
public SyncInfoValueControl(SynchronizationInfoEnum type)
type - The kind of syncInfo we will store. Can be newCookie,
refreshPresent, refreshDelete or syncIdSet| Method Detail |
|---|
public SynchronizationInfoEnum getType()
public void setType(SynchronizationInfoEnum type)
syncMode - the syncMode to setpublic byte[] getCookie()
public void setCookie(byte[] cookie)
cookie - the cookie to setpublic boolean isRefreshDone()
public void setRefreshDone(boolean refreshDone)
refreshDone - the refreshDone to setpublic boolean isRefreshDeletes()
public void setRefreshDeletes(boolean refreshDeletes)
refreshDeletes - the refreshDeletes to setpublic java.util.List<byte[]> getSyncUUIDs()
public void setSyncUUIDs(java.util.List<byte[]> syncUUIDs)
syncUUIDs - the syncUUIDs to setpublic void addSyncUUID(byte[] syncUUID)
syncUUIDs - the syncUUIDs to setpublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface CodecControlcomputeLength in class AbstractControl
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in interface CodecControlencode in class AbstractControlbuffer - The encoded sink
EncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface ControlgetValue in class AbstractControlpublic java.lang.String toString()
AbstractControl
toString in class AbstractControlObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||