Class SyncDoneValueImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.controls.AbstractControl
-
- org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValueImpl
-
- All Implemented Interfaces:
SyncDoneValue
,Control
public class SyncDoneValueImpl extends AbstractControl implements SyncDoneValue
A simpleSyncDoneValue
implementation to store control properties.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValue
OID
-
-
Constructor Summary
Constructors Constructor Description SyncDoneValueImpl()
Creates a new instance of SyncDoneValueImpl.SyncDoneValueImpl(boolean isCritical)
Creates a new instance of SyncDoneValueImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
byte[]
getCookie()
int
hashCode()
boolean
isRefreshDeletes()
void
setCookie(byte[] cookie)
void
setRefreshDeletes(boolean refreshDeletes)
String
toString()
Return a String representing a Control-
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Constructor Detail
-
SyncDoneValueImpl
public SyncDoneValueImpl()
Creates a new instance of SyncDoneValueImpl.
-
SyncDoneValueImpl
public SyncDoneValueImpl(boolean isCritical)
Creates a new instance of SyncDoneValueImpl.- Parameters:
isCritical
- The critical flag
-
-
Method Detail
-
getCookie
public byte[] getCookie()
- Specified by:
getCookie
in interfaceSyncDoneValue
- Returns:
- the cookie
-
setCookie
public void setCookie(byte[] cookie)
- Specified by:
setCookie
in interfaceSyncDoneValue
- Parameters:
cookie
- cookie to be set
-
isRefreshDeletes
public boolean isRefreshDeletes()
- Specified by:
isRefreshDeletes
in interfaceSyncDoneValue
- Returns:
- true, if refreshDeletes flag is set, false otherwise
-
setRefreshDeletes
public void setRefreshDeletes(boolean refreshDeletes)
- Specified by:
setRefreshDeletes
in interfaceSyncDoneValue
- Parameters:
refreshDeletes
- set the refreshDeletes flag
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractControl
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractControl
- See Also:
Object.equals(Object)
-
toString
public String toString()
Description copied from class:AbstractControl
Return a String representing a Control- Overrides:
toString
in classAbstractControl
- See Also:
Object.toString()
-
-