public class SyncInfoValueControl extends AbstractControl
Modifier and Type | Field and Description |
---|---|
static String |
CONTROL_OID
This control OID
|
decoder, value, valueLength
parent
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, setValue
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public 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 Asn1Object
computeLength
in interface CodecControl
computeLength
in class AbstractControl
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface CodecControl
encode
in class AbstractControl
buffer
- The encoded sinkEncoderException
- If anything goes wrong.public byte[] getValue()
getValue
in interface Control
getValue
in class AbstractControl
public String toString()
AbstractControl
toString
in class AbstractControl
Object.toString()
Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.