public class SyncInfoValueDecorator extends ControlDecorator<SyncInfoValue> implements SyncInfoValue
value, valueLength
OID
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOid, isCritical, setCritical
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 syncIdSetpublic SynchronizationInfoEnum getType()
getType
in interface SyncInfoValue
public void setType(SynchronizationInfoEnum type)
setType
in interface SyncInfoValue
public byte[] getCookie()
getCookie
in interface SyncInfoValue
public void setCookie(byte[] cookie)
setCookie
in interface SyncInfoValue
cookie
- the cookie to setpublic boolean isRefreshDone()
isRefreshDone
in interface SyncInfoValue
public void setRefreshDone(boolean refreshDone)
setRefreshDone
in interface SyncInfoValue
refreshDone
- the refreshDone to setpublic boolean isRefreshDeletes()
isRefreshDeletes
in interface SyncInfoValue
public void setRefreshDeletes(boolean refreshDeletes)
setRefreshDeletes
in interface SyncInfoValue
refreshDeletes
- the refreshDeletes to setpublic List<byte[]> getSyncUUIDs()
getSyncUUIDs
in interface SyncInfoValue
public void setSyncUUIDs(List<byte[]> syncUUIDs)
setSyncUUIDs
in interface SyncInfoValue
syncUUIDs
- the syncUUIDs to setpublic void addSyncUUID(byte[] syncUUID)
addSyncUUID
in interface SyncInfoValue
public int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface Decorator<SyncInfoValue>
computeLength
in class ControlDecorator<SyncInfoValue>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<SyncInfoValue>
encode
in class AbstractAsn1Object
buffer
- The encoded sinkEncoderException
- 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 bytesDecoderException
- if anything goes wrongCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.