Class AdDirSyncResponseImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.controls.AbstractControl
-
- org.apache.directory.api.ldap.extras.controls.ad.AdDirSyncResponseImpl
-
- All Implemented Interfaces:
AdDirSyncResponse
,Control
public class AdDirSyncResponseImpl extends AbstractControl implements AdDirSyncResponse
The class implemnting the AdDirsSync interface- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.controls.ad.AdDirSyncResponse
OID
-
-
Constructor Summary
Constructors Constructor Description AdDirSyncResponseImpl()
Creates an instance of the DirSync control
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFlag(AdDirSyncResponseFlag flag)
boolean
equals(Object other)
byte[]
getCookie()
Set<AdDirSyncResponseFlag>
getFlags()
int
getMaxReturnLength()
int
hashCode()
void
removeFlag(AdDirSyncResponseFlag flag)
void
setCookie(byte[] cookie)
void
setFlags(Set<AdDirSyncResponseFlag> flags)
void
setMaxReturnLength(int maxReturnLength)
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
-
AdDirSyncResponseImpl
public AdDirSyncResponseImpl()
Creates an instance of the DirSync control
-
-
Method Detail
-
getFlags
public Set<AdDirSyncResponseFlag> getFlags()
- Specified by:
getFlags
in interfaceAdDirSyncResponse
- Returns:
- The flags returned by the server. Zero or more of :
- LDAP_DIRSYNC_OBJECT_SECURITY (0x0001)
- LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER (0x0800)
- LDAP_DIRSYNC_PUBLIC_DATA_ONLY (0x2000)(
- LDAP_DIRSYNC_INCREMENTAL_VALUES (0x7FFFFFFF)
-
setFlags
public void setFlags(Set<AdDirSyncResponseFlag> flags)
- Specified by:
setFlags
in interfaceAdDirSyncResponse
- Parameters:
flags
- The flags to be set. SeeEnumSet
for how to generate EnumSets.
-
addFlag
public void addFlag(AdDirSyncResponseFlag flag)
- Specified by:
addFlag
in interfaceAdDirSyncResponse
- Parameters:
flag
- The flag to be added to the current collection of flags.
-
removeFlag
public void removeFlag(AdDirSyncResponseFlag flag)
- Specified by:
removeFlag
in interfaceAdDirSyncResponse
- Parameters:
flag
- The flag to be removed from the current collection of flags.
-
getMaxReturnLength
public int getMaxReturnLength()
- Specified by:
getMaxReturnLength
in interfaceAdDirSyncResponse
- Returns:
- The maximum length of attributes to be returned
-
setMaxReturnLength
public void setMaxReturnLength(int maxReturnLength)
- Specified by:
setMaxReturnLength
in interfaceAdDirSyncResponse
- Parameters:
maxReturnLength
- The maximum length of attributes to be returned
-
getCookie
public byte[] getCookie()
- Specified by:
getCookie
in interfaceAdDirSyncResponse
- Returns:
- The cookie used while processing the successive DirSync operations
-
setCookie
public void setCookie(byte[] cookie)
- Specified by:
setCookie
in interfaceAdDirSyncResponse
- Parameters:
cookie
- The cookie to send to the server. It's the value found in the response control. Should be null for the first control.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractControl
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object other)
- 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()
-
-