public class SyncStateControl extends AbstractControl implements ResponseControl
syncStateValue ::= SEQUENCE { state ENUMERATED { present (0), add (1), modify (2), delete (3) }, entryUUID syncUUID, cookie syncCookie OPTIONAL }
Modifier and Type | Class and Description |
---|---|
private static class |
SyncStateControl.CookieHandler
Parse handler implementation for the cookie.
|
private static class |
SyncStateControl.EntryUuidHandler
Parse handler implementation for the entry uuid.
|
static class |
SyncStateControl.State
Types of states.
|
private static class |
SyncStateControl.StateHandler
Parse handler implementation for the sync state.
|
Modifier and Type | Field and Description |
---|---|
private byte[] |
cookie
server generated cookie.
|
private UUID |
entryUuid
sync UUID.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
static String |
OID
OID of this control.
|
private SyncStateControl.State |
syncState
sync state.
|
logger
Constructor and Description |
---|
SyncStateControl()
Default constructor.
|
SyncStateControl(boolean critical)
Creates a new sync state control.
|
SyncStateControl(SyncStateControl.State state)
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.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data.
|
boolean |
equals(Object o) |
byte[] |
getCookie()
Returns the sync state cookie.
|
UUID |
getEntryUuid()
Returns the entry uuid.
|
SyncStateControl.State |
getSyncState()
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 |
setSyncState(SyncStateControl.State state)
Sets the sync state.
|
String |
toString() |
getCriticality, getOID
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCriticality, getOID
public static final String OID
private static final int HASH_CODE_SEED
private SyncStateControl.State syncState
private UUID entryUuid
private byte[] cookie
public SyncStateControl()
public SyncStateControl(boolean critical)
critical
- whether this control is criticalpublic SyncStateControl(SyncStateControl.State state)
state
- sync statepublic SyncStateControl(SyncStateControl.State state, boolean critical)
state
- sync statecritical
- whether this control is criticalpublic SyncStateControl(SyncStateControl.State state, UUID uuid, boolean critical)
state
- sync stateuuid
- sync entry uuidcritical
- whether this control is criticalpublic SyncStateControl(SyncStateControl.State state, UUID uuid, byte[] value, boolean critical)
state
- sync stateuuid
- sync entry uuidvalue
- sync state cookiecritical
- whether this control is criticalpublic SyncStateControl.State getSyncState()
public void setSyncState(SyncStateControl.State state)
state
- sync statepublic UUID getEntryUuid()
public void setEntryUuid(UUID uuid)
uuid
- entry uuidpublic byte[] getCookie()
public void setCookie(byte[] value)
value
- sync state cookiepublic boolean equals(Object o)
equals
in class AbstractControl
public int hashCode()
AbstractControl
hashCode
in class AbstractControl
public void decode(byte[] berValue)
ResponseControl
decode
in interface ResponseControl
berValue
- BER encoded response controlCopyright © 2003-2019 Virginia Tech. All Rights Reserved.