|
||||||||||
| 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<SyncStateValue>
org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValueDecorator
public class SyncStateValueDecorator
A syncStateValue 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.SyncStateValue |
|---|
OID |
| Constructor Summary | |
|---|---|
SyncStateValueDecorator(LdapCodecService codec)
|
|
SyncStateValueDecorator(LdapCodecService codec,
SyncStateValue value)
|
|
| Method Summary | |
|---|---|
int |
computeLength()
Compute the SyncStateValue length. |
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control. |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncStateValue control |
byte[] |
getCookie()
|
byte[] |
getEntryUUID()
|
SyncStateTypeEnum |
getSyncStateType()
|
byte[] |
getValue()
Get the control value |
void |
setCookie(byte[] cookie)
|
void |
setEntryUUID(byte[] entryUUID)
set the entryUUID |
void |
setSyncStateType(SyncStateTypeEnum syncStateType)
set the syncState's 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 SyncStateValueDecorator(LdapCodecService codec)
public SyncStateValueDecorator(LdapCodecService codec,
SyncStateValue value)
| Method Detail |
|---|
public byte[] getCookie()
getCookie in interface SyncStateValuepublic void setCookie(byte[] cookie)
setCookie in interface SyncStateValuecookie - the cookie to setpublic SyncStateTypeEnum getSyncStateType()
getSyncStateType in interface SyncStateValuepublic void setSyncStateType(SyncStateTypeEnum syncStateType)
setSyncStateType in interface SyncStateValuesyncStateType - the syncState's typepublic byte[] getEntryUUID()
getEntryUUID in interface SyncStateValuepublic void setEntryUUID(byte[] entryUUID)
setEntryUUID in interface SyncStateValueentryUUID - the entryUUIDpublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<SyncStateValue>computeLength in class ControlDecorator<SyncStateValue>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<SyncStateValue>encode in class AbstractAsn1Objectbuffer - The encoded sink
EncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<SyncStateValue>getValue in class ControlDecorator<SyncStateValue>
public Asn1Object decode(byte[] controlBytes)
throws DecoderException
decode in interface CodecControl<SyncStateValue>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 | |||||||||