Class SyncRequestValueImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.controls.AbstractControl
org.apache.directory.api.ldap.extras.controls.syncrepl.syncRequest.SyncRequestValueImpl
- All Implemented Interfaces:
SyncRequestValue, org.apache.directory.api.ldap.model.message.Control
public class SyncRequestValueImpl
extends org.apache.directory.api.ldap.model.message.controls.AbstractControl
implements SyncRequestValue
A syncRequestValue object, as defined in RFC 4533 :
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.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from interface SyncRequestValue
OID -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of SyncRequestValueImpl.SyncRequestValueImpl(boolean isCritical) Creates a new instance of SyncRequestValueImpl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]Get the cookiegetMode()Get the modeinthashCode()booleanGet the reloadHint flagvoidsetCookie(byte[] cookie) Set the cookievoidSet the modevoidsetReloadHint(boolean reloadHint) Set the reloadHint flagtoString()Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCriticalMethods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
Constructor Details
-
SyncRequestValueImpl
public SyncRequestValueImpl()Creates a new instance of SyncRequestValueImpl. -
SyncRequestValueImpl
public SyncRequestValueImpl(boolean isCritical) Creates a new instance of SyncRequestValueImpl.- Parameters:
isCritical- The critical flag
-
-
Method Details
-
getCookie
public byte[] getCookie()Get the cookie- Specified by:
getCookiein interfaceSyncRequestValue- Returns:
- the cookie
-
setCookie
public void setCookie(byte[] cookie) Set the cookie- Specified by:
setCookiein interfaceSyncRequestValue- Parameters:
cookie- the cookie to set
-
getMode
Get the mode- Specified by:
getModein interfaceSyncRequestValue- Returns:
- the mode
-
setMode
Set the mode- Specified by:
setModein interfaceSyncRequestValue- Parameters:
mode- the syncMode to set
-
isReloadHint
public boolean isReloadHint()Get the reloadHint flag- Specified by:
isReloadHintin interfaceSyncRequestValue- Returns:
- the reloadHint
-
setReloadHint
public void setReloadHint(boolean reloadHint) Set the reloadHint flag- Specified by:
setReloadHintin interfaceSyncRequestValue- Parameters:
reloadHint- the reloadHint to set
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.directory.api.ldap.model.message.controls.AbstractControl- See Also:
-
equals
- Overrides:
equalsin classorg.apache.directory.api.ldap.model.message.controls.AbstractControl- See Also:
-
toString
- Overrides:
toStringin classorg.apache.directory.api.ldap.model.message.controls.AbstractControl- See Also:
-