Package org.ldaptive.control
Class SyncStateControl
java.lang.Object
org.ldaptive.control.AbstractControl
org.ldaptive.control.SyncStateControl
- All Implemented Interfaces:
Control
,ResponseControl
Response control for ldap content synchronization. See RFC 4533. Control is defined as:
syncStateValue ::= SEQUENCE { state ENUMERATED { present (0), add (1), modify (2), delete (3) }, entryUUID syncUUID, cookie syncCookie OPTIONAL }
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Parse handler implementation for the cookie.private static class
Parse handler implementation for the entry uuid.static enum
Types of states.private static class
Parse handler implementation for the sync state. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
server generated cookie.private UUID
sync UUID.private static final int
hash code seed.static final String
OID of this control.private SyncStateControl.State
sync state.Fields inherited from class org.ldaptive.control.AbstractControl
logger
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SyncStateControl
(boolean critical) Creates a new sync state control.Creates a new sync state control.SyncStateControl
(SyncStateControl.State state, boolean critical) Creates a new sync state control.SyncStateControl
(SyncStateControl.State state, UUID uuid, boolean critical) Creates a new sync state control.SyncStateControl
(SyncStateControl.State state, UUID uuid, byte[] value, boolean critical) Creates a new sync state control. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Initializes this response control with the supplied BER encoded data.boolean
byte[]
Returns the sync state cookie.Returns the entry uuid.Returns the sync state.int
hashCode()
Returns the hash code for this object.void
setCookie
(byte[] value) Sets the sync state cookie.void
setEntryUuid
(UUID uuid) Sets the entry uuid.void
Sets the sync state.toString()
Methods inherited from class org.ldaptive.control.AbstractControl
getCriticality, getOID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ldaptive.control.Control
getCriticality, getOID
-
Field Details
-
OID
OID of this control.- See Also:
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
syncState
sync state. -
entryUuid
sync UUID. -
cookie
private byte[] cookieserver generated cookie.
-
-
Constructor Details
-
SyncStateControl
public SyncStateControl()Default constructor. -
SyncStateControl
public SyncStateControl(boolean critical) Creates a new sync state control.- Parameters:
critical
- whether this control is critical
-
SyncStateControl
Creates a new sync state control.- Parameters:
state
- sync state
-
SyncStateControl
Creates a new sync state control.- Parameters:
state
- sync statecritical
- whether this control is critical
-
SyncStateControl
Creates a new sync state control.- Parameters:
state
- sync stateuuid
- sync entry uuidcritical
- whether this control is critical
-
SyncStateControl
Creates a new sync state control.- Parameters:
state
- sync stateuuid
- sync entry uuidvalue
- sync state cookiecritical
- whether this control is critical
-
-
Method Details
-
getSyncState
Returns the sync state.- Returns:
- sync state
-
setSyncState
Sets the sync state.- Parameters:
state
- sync state
-
getEntryUuid
Returns the entry uuid.- Returns:
- entry uuid
-
setEntryUuid
Sets the entry uuid.- Parameters:
uuid
- entry uuid
-
getCookie
public byte[] getCookie()Returns the sync state cookie.- Returns:
- sync state cookie
-
setCookie
public void setCookie(byte[] value) Sets the sync state cookie.- Parameters:
value
- sync state cookie
-
equals
- Overrides:
equals
in classAbstractControl
-
hashCode
public int hashCode()Description copied from class:AbstractControl
Returns the hash code for this object.- Specified by:
hashCode
in classAbstractControl
- Returns:
- hash code
-
toString
- Overrides:
toString
in classAbstractControl
-
decode
Description copied from interface:ResponseControl
Initializes this response control with the supplied BER encoded data.- Specified by:
decode
in interfaceResponseControl
- Parameters:
encoded
- BER encoded response control
-