Package org.ldaptive.control
Class SyncDoneControl
java.lang.Object
org.ldaptive.control.AbstractControl
org.ldaptive.control.AbstractResponseControl
org.ldaptive.control.SyncDoneControl
- All Implemented Interfaces:
Control,ResponseControl,Freezable
Response control for ldap content synchronization. See RFC 4533. Control is defined as:
syncDoneValue ::= SEQUENCE {
cookie syncCookie OPTIONAL,
refreshDeletes BOOLEAN DEFAULT FALSE
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classParse handler implementation for the cookie.private static classParse handler implementation for the refresh deletes flag. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]server generated cookie.private static final inthash code seed.static final StringOID of this control.private booleanrefresh deletes.Fields inherited from class org.ldaptive.control.AbstractControl
logger -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SyncDoneControl(boolean critical) Creates a new sync done control.SyncDoneControl(byte[] value) Creates a new sync done control.SyncDoneControl(byte[] value, boolean critical) Creates a new sync done control.SyncDoneControl(byte[] value, boolean refresh, boolean critical) Creates a new sync done control. -
Method Summary
Methods inherited from class org.ldaptive.control.AbstractResponseControl
assertMutable, freeze, freezeAndAssertMutable, isFrozenMethods inherited from class org.ldaptive.control.AbstractControl
getCriticality, getOIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ldaptive.control.Control
getCriticality, getOID
-
Field Details
-
OID
OID of this control.- See Also:
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
cookie
private byte[] cookieserver generated cookie. -
refreshDeletes
private boolean refreshDeletesrefresh deletes.
-
-
Constructor Details
-
SyncDoneControl
public SyncDoneControl()Default constructor. -
SyncDoneControl
public SyncDoneControl(boolean critical) Creates a new sync done control.- Parameters:
critical- whether this control is critical
-
SyncDoneControl
public SyncDoneControl(byte[] value) Creates a new sync done control.- Parameters:
value- sync done cookie
-
SyncDoneControl
public SyncDoneControl(byte[] value, boolean critical) Creates a new sync done control.- Parameters:
value- sync done cookiecritical- whether this control is critical
-
SyncDoneControl
public SyncDoneControl(byte[] value, boolean refresh, boolean critical) Creates a new sync done control.- Parameters:
value- sync done cookierefresh- whether to refresh deletescritical- whether this control is critical
-
-
Method Details
-
getCookie
public byte[] getCookie()Returns the sync done cookie.- Returns:
- sync done cookie
-
getRefreshDeletes
public boolean getRefreshDeletes()Returns whether to refresh deletes.- Returns:
- refresh deletes
-
equals
- Overrides:
equalsin classAbstractControl
-
hashCode
public int hashCode()Description copied from class:AbstractControlReturns the hash code for this object.- Specified by:
hashCodein classAbstractControl- Returns:
- hash code
-
toString
- Overrides:
toStringin classAbstractControl
-
decode
Description copied from interface:ResponseControlInitializes this response control with the supplied BER encoded data.- Parameters:
encoded- BER encoded response control
-