public class SyncRequestValueImpl extends org.apache.directory.api.ldap.model.message.controls.AbstractControl implements SyncRequestValue
2.2. Sync Request Control
The Sync Request Control is an LDAP Control [RFC4511] where the
controlType is the object identifier 1.3.6.1.4.1.4203.1.9.1.1 and the
controlValue, an OCTET STRING, contains a BER-encoded
syncRequestValue. The criticality field is either TRUE or FALSE.
syncRequestValue ::= SEQUENCE {
mode ENUMERATED {
-- 0 unused
refreshOnly (1),
-- 2 reserved
refreshAndPersist (3)
},
cookie syncCookie OPTIONAL,
reloadHint BOOLEAN DEFAULT FALSE
}
The Sync Request Control is only applicable to the SearchRequest
Message.
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
cookie
The Sync cookie
|
private boolean |
isReloadHint
The reloadHint flag
|
private SynchronizationModeEnum |
mode
The synchronization type
|
OID| Constructor and Description |
|---|
SyncRequestValueImpl()
Creates a new instance of SyncRequestValueImpl.
|
SyncRequestValueImpl(boolean isCritical)
Creates a new instance of SyncRequestValueImpl.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
byte[] |
getCookie() |
SynchronizationModeEnum |
getMode() |
int |
hashCode() |
boolean |
isReloadHint() |
void |
setCookie(byte[] cookie) |
void |
setMode(SynchronizationModeEnum mode) |
void |
setReloadHint(boolean reloadHint) |
String |
toString() |
getOid, isCritical, setCriticalprivate SynchronizationModeEnum mode
private byte[] cookie
private boolean isReloadHint
public SyncRequestValueImpl()
public SyncRequestValueImpl(boolean isCritical)
isCritical - The critical flagpublic byte[] getCookie()
getCookie in interface SyncRequestValuepublic void setCookie(byte[] cookie)
setCookie in interface SyncRequestValuecookie - the cookie to setpublic SynchronizationModeEnum getMode()
getMode in interface SyncRequestValuepublic void setMode(SynchronizationModeEnum mode)
setMode in interface SyncRequestValuemode - the syncMode to setpublic boolean isReloadHint()
isReloadHint in interface SyncRequestValuepublic void setReloadHint(boolean reloadHint)
setReloadHint in interface SyncRequestValuereloadHint - the reloadHint to setpublic int hashCode()
hashCode in class org.apache.directory.api.ldap.model.message.controls.AbstractControlObject.hashCode()public boolean equals(Object o)
equals in class org.apache.directory.api.ldap.model.message.controls.AbstractControlObject.equals(Object)public String toString()
toString in class org.apache.directory.api.ldap.model.message.controls.AbstractControlObject.toString()Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.