public class SyncInfoValueControl extends AbstractControl
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTROL_OID
This control OID
|
decoder, value, valueLengthparent| Constructor and Description |
|---|
SyncInfoValueControl(SynchronizationInfoEnum type)
The constructor for this codec.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSyncUUID(byte[] syncUUID) |
int |
computeLength()
Compute the SyncInfoValue length.
|
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) |
String |
toString()
Return a String representing a Control
|
computeLength, getDecoder, getOid, hasValue, isCritical, setCritical, setValueaddLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParentpublic static final String CONTROL_OID
public SyncInfoValueControl(SynchronizationInfoEnum type)
type - The kind of syncInfo we will store. Can be newCookie,
refreshPresent, refreshDelete or syncIdSetpublic 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 List<byte[]> getSyncUUIDs()
public void setSyncUUIDs(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 AbstractControlpublic ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface CodecControlencode in class AbstractControlbuffer - The encoded sinkEncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface ControlgetValue in class AbstractControlpublic String toString()
AbstractControltoString in class AbstractControlObject.toString()Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.