public class SyncInfoMessage extends AbstractIntermediateResponse
syncInfoValue ::= CHOICE { newcookie [0] syncCookie, refreshDelete [1] SEQUENCE { cookie syncCookie OPTIONAL, refreshDone BOOLEAN DEFAULT TRUE }, refreshPresent [2] SEQUENCE { cookie syncCookie OPTIONAL, refreshDone BOOLEAN DEFAULT TRUE }, syncIdSet [3] SEQUENCE { cookie syncCookie OPTIONAL, refreshDeletes BOOLEAN DEFAULT FALSE, syncUUIDs SET OF syncUUID } }
Modifier and Type | Class and Description |
---|---|
private static class |
SyncInfoMessage.NewCookieHandler
Parse handler implementation for new cookie.
|
private static class |
SyncInfoMessage.RefreshDeleteCookieHandler
Parse handler implementation for refresh delete cookie.
|
private static class |
SyncInfoMessage.RefreshDeleteDoneHandler
Parse handler implementation for refresh delete done.
|
private static class |
SyncInfoMessage.RefreshDeleteHandler
Parse handler implementation for refresh delete.
|
private static class |
SyncInfoMessage.RefreshPresentCookieHandler
Parse handler implementation for refresh present cookie.
|
private static class |
SyncInfoMessage.RefreshPresentDoneHandler
Parse handler implementation for refresh present done.
|
private static class |
SyncInfoMessage.RefreshPresentHandler
Parse handler implementation for refresh present.
|
private static class |
SyncInfoMessage.SyncIdSetCookieHandler
Parse handler implementation for sync id set cookie.
|
private static class |
SyncInfoMessage.SyncIdSetDeletesHandler
Parse handler implementation for sync id set deletes.
|
private static class |
SyncInfoMessage.SyncIdSetHandler
Parse handler implementation for sync id set.
|
private static class |
SyncInfoMessage.SyncIdSetUuidsHandler
Parse handler implementation for sync id set uuids.
|
static class |
SyncInfoMessage.Type
Types of request modes.
|
Modifier and Type | Field and Description |
---|---|
private byte[] |
cookie
server generated cookie.
|
private Set<UUID> |
entryUuids
entry uuids.
|
private static int |
HASH_CODE_SEED
hash value seed.
|
private SyncInfoMessage.Type |
messageType
message type.
|
static String |
OID
OID of this response.
|
private boolean |
refreshDeletes
refresh deletes.
|
private boolean |
refreshDone
refresh done.
|
Constructor and Description |
---|
SyncInfoMessage()
Default constructor.
|
SyncInfoMessage(ResponseControl[] responseControls,
int id)
Creates a new sync info message.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(byte[] berValue)
Initializes this response with the supplied BER encoded data.
|
boolean |
equals(Object o) |
byte[] |
getCookie()
Returns the sync request cookie.
|
Set<UUID> |
getEntryUuids()
Returns the entry uuids.
|
SyncInfoMessage.Type |
getMessageType()
Returns the message type.
|
boolean |
getRefreshDeletes()
Returns whether to refresh deletes.
|
boolean |
getRefreshDone()
Returns whether refreshes are done.
|
int |
hashCode() |
void |
setCookie(byte[] value)
Sets the sync request cookie.
|
void |
setEntryUuids(Set<UUID> uuids)
Sets the entry uuids.
|
void |
setMessageType(SyncInfoMessage.Type type)
Sets the message type.
|
void |
setRefreshDeletes(boolean b)
Sets whether to refresh deletes.
|
void |
setRefreshDone(boolean b)
Sets whether refreshes are done.
|
String |
toString() |
getControl, getControls, getMessageId, getOID
public static final String OID
private static final int HASH_CODE_SEED
private SyncInfoMessage.Type messageType
private byte[] cookie
private boolean refreshDone
private boolean refreshDeletes
public SyncInfoMessage()
public SyncInfoMessage(ResponseControl[] responseControls, int id)
responseControls
- for this messageid
- message idpublic SyncInfoMessage.Type getMessageType()
public void setMessageType(SyncInfoMessage.Type type)
type
- message typepublic byte[] getCookie()
public void setCookie(byte[] value)
value
- sync request cookiepublic boolean getRefreshDone()
public void setRefreshDone(boolean b)
b
- refresh donepublic boolean getRefreshDeletes()
public void setRefreshDeletes(boolean b)
b
- whether to refresh deletespublic void setEntryUuids(Set<UUID> uuids)
uuids
- entry uuidspublic void decode(byte[] berValue)
IntermediateResponse
berValue
- BER encoded response valueCopyright © 2003-2019 Virginia Tech. All Rights Reserved.