@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ContentSyncInfoIntermediateResponse extends IntermediateResponse
ContentSyncRequestControl class for more
information about using the content synchronization operation.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SYNC_INFO_OID
The OID (1.3.6.1.4.1.4203.1.9.1.4) for the sync info intermediate response.
|
TYPE_INTERMEDIATE_RESPONSE_OID, TYPE_INTERMEDIATE_RESPONSE_VALUE| Modifier and Type | Method and Description |
|---|---|
static ContentSyncInfoIntermediateResponse |
createNewCookieResponse(ASN1OctetString cookie,
Control... controls)
Creates a new sync info intermediate response with a type of
ContentSyncInfoType.NEW_COOKIE. |
static ContentSyncInfoIntermediateResponse |
createRefreshDeleteResponse(ASN1OctetString cookie,
boolean refreshDone,
Control... controls)
Creates a new sync info intermediate response with a type of
ContentSyncInfoType.REFRESH_DELETE. |
static ContentSyncInfoIntermediateResponse |
createRefreshPresentResponse(ASN1OctetString cookie,
boolean refreshDone,
Control... controls)
Creates a new sync info intermediate response with a type of
ContentSyncInfoType.REFRESH_PRESENT. |
static ContentSyncInfoIntermediateResponse |
createSyncIDSetResponse(ASN1OctetString cookie,
java.util.List<java.util.UUID> entryUUIDs,
boolean refreshDeletes,
Control... controls)
Creates a new sync info intermediate response with a type of
ContentSyncInfoType.SYNC_ID_SET. |
static ContentSyncInfoIntermediateResponse |
decode(IntermediateResponse r)
Decodes the provided generic intermediate response as a sync info
intermediate response.
|
ASN1OctetString |
getCookie()
Retrieves an updated state cookie for the synchronization session, if
available.
|
java.util.List<java.util.UUID> |
getEntryUUIDs()
Retrieves a list of the entryUUID values for the entries referenced in this
message.
|
java.lang.String |
getIntermediateResponseName()
Retrieves the user-friendly name for the intermediate response, if
available.
|
ContentSyncInfoType |
getType()
Retrieves the type of content synchronization information represented in
this response.
|
boolean |
refreshDeletes()
Indicates whether the provided set of UUIDs represent entries that have
been removed.
|
boolean |
refreshDone()
Indicates whether the refresh phase of the synchronization operation has
completed.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this intermediate response to the
provided buffer.
|
java.lang.String |
valueToString()
Retrieves a human-readable string representation for the contents of the
value for this intermediate response, if appropriate.
|
getControl, getControls, getMessageID, getOID, getValue, toString@NotNull public static final java.lang.String SYNC_INFO_OID
@NotNull public static ContentSyncInfoIntermediateResponse createNewCookieResponse(@NotNull ASN1OctetString cookie, @Nullable Control... controls)
ContentSyncInfoType.NEW_COOKIE.cookie - The updated state cookie for the synchronization session.
It must not be null.controls - An optional set of controls to include in the response.
It may be null or empty if no controls should be
included.@NotNull public static ContentSyncInfoIntermediateResponse createRefreshDeleteResponse(@Nullable ASN1OctetString cookie, boolean refreshDone, @Nullable Control... controls)
ContentSyncInfoType.REFRESH_DELETE.cookie - The updated state cookie for the synchronization
session. It may be null if no new cookie is
available.refreshDone - Indicates whether the refresh phase of the
synchronization operation has completed.controls - An optional set of controls to include in the
response. It may be null or empty if no
controls should be included.@NotNull public static ContentSyncInfoIntermediateResponse createRefreshPresentResponse(@Nullable ASN1OctetString cookie, boolean refreshDone, @Nullable Control... controls)
ContentSyncInfoType.REFRESH_PRESENT.cookie - The updated state cookie for the synchronization
session. It may be null if no new cookie is
available.refreshDone - Indicates whether the refresh phase of the
synchronization operation has completed.controls - An optional set of controls to include in the
response. It may be null or empty if no
controls should be included.@NotNull public static ContentSyncInfoIntermediateResponse createSyncIDSetResponse(@Nullable ASN1OctetString cookie, @NotNull java.util.List<java.util.UUID> entryUUIDs, boolean refreshDeletes, @Nullable Control... controls)
ContentSyncInfoType.SYNC_ID_SET.cookie - The updated state cookie for the synchronization
session. It may be null if no new cookie
is available.entryUUIDs - The set of entryUUIDs for the entries referenced in
this response. It must not be null.refreshDeletes - Indicates whether the entryUUIDs represent entries
that have been removed rather than those that have
remained unchanged.controls - An optional set of controls to include in the
response. It may be null or empty if no
controls should be included.@NotNull public static ContentSyncInfoIntermediateResponse decode(@NotNull IntermediateResponse r) throws LDAPException
r - The intermediate response to be decoded as a sync info
intermediate response. It must not be null.LDAPException - If a problem occurs while trying to decode the
provided intermediate response as a sync info
response.@NotNull public ContentSyncInfoType getType()
@Nullable public ASN1OctetString getCookie()
null for a type of
ContentSyncInfoType.NEW_COOKIE, and may or may not be null
for other types.null if none is available.public boolean refreshDone()
ContentSyncInfoType.REFRESH_DELETE and
ContentSyncInfoType.REFRESH_PRESENT types.true if the refresh phase of the synchronization operation
has completed, or false if not or if it is not applicable
for this message type.@Nullable public java.util.List<java.util.UUID> getEntryUUIDs()
ContentSyncInfoType.SYNC_ID_SET type.null if it is not applicable for this message
type.public boolean refreshDeletes()
ContentSyncInfoType.SYNC_ID_SET type.true if the associated set of entryUUIDs represent entries
that have been deleted, or false if they represent entries
that remain unchanged or if it is not applicable for this message
type.@NotNull public java.lang.String getIntermediateResponseName()
null will be returned.getIntermediateResponseName in class IntermediateResponsenull if neither a user-friendly name
nor a response OID are available.@NotNull public java.lang.String valueToString()
valueToString in class IntermediateResponsenull if there is
no value or no string representation is available.public void toString(@NotNull java.lang.StringBuilder buffer)
toString in interface LDAPResponsetoString in class IntermediateResponsebuffer - The buffer to which the string representation should be
appended.