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 |
---|---|
static class |
SyncInfoMessage.Type
Types of request modes.
|
Modifier and Type | Field and Description |
---|---|
static String |
OID
OID of this response.
|
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.
|
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()
Returns the hash code for this object.
|
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() |
equals, getControl, getControls, getMessageId, getOID
public static final String OID
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 valuepublic int hashCode()
AbstractIntermediateResponse
hashCode
in class AbstractIntermediateResponse
Copyright © 2019. All rights reserved.