Interface AdDirSyncResponse
- All Superinterfaces:
org.apache.directory.api.ldap.model.message.Control
- All Known Implementing Classes:
AdDirSyncResponseImpl
public interface AdDirSyncResponse
extends org.apache.directory.api.ldap.model.message.Control
The DirSync response control, as described in http://tools.ietf.org/html/draft-armijo-ldap-dirsync-00.
Here is the ASN/1 description of the SearchRequest control :
Repl Control ::= SEQUENCE {
controlType 1.2.840.113556.1.4.841
controlValue replControlValue
criticality TRUE
}
the control value is :
realReplControlValue ::= SEQUENCE {
flag integer
maxReturnLength integer
cookie OCTET STRING
}
- Author:
- Apache Directory Project
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFlag(AdDirSyncResponseFlag flag) Add a flag to the collection of flagsbyte[]Get the cookiegetFlags()Get the flags returned by the server.intGet the maximum length of attributesvoidRemove a given flag from the collection of flagsvoidsetCookie(byte[] cookie) Set the cookievoidsetFlags(Set<AdDirSyncResponseFlag> flags) Set the flagsvoidsetMaxReturnLength(int maxReturnLength) Set the maximum length of attributesMethods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
Field Details
-
OID
-
-
Method Details
-
getMaxReturnLength
int getMaxReturnLength()Get the maximum length of attributes- Returns:
- The maximum length of attributes to be returned
-
setMaxReturnLength
void setMaxReturnLength(int maxReturnLength) Set the maximum length of attributes- Parameters:
maxReturnLength- The maximum length of attributes to be returned
-
getCookie
byte[] getCookie()Get the cookie- Returns:
- The cookie used while processing the successive DirSync operations
-
setCookie
void setCookie(byte[] cookie) Set the cookie- 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.
-
getFlags
Set<AdDirSyncResponseFlag> getFlags()Get 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)
- Returns:
- The flags
-
setFlags
Set the flags- Parameters:
flags- The flags to be set. SeeEnumSetfor how to generate EnumSets.
-
addFlag
Add a flag to the collection of flags- Parameters:
flag- The flag to be added to the current collection of flags.
-
removeFlag
Remove a given flag from the collection of flags- Parameters:
flag- The flag to be removed from the current collection of flags.
-