@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ContentSyncDoneControl extends Control implements DecodeableControl
ContentSyncRequestControl
class for more
information about using the content synchronization operation.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SYNC_DONE_OID
The OID (1.3.6.1.4.1.4203.1.9.1.3) for the sync done control.
|
Constructor and Description |
---|
ContentSyncDoneControl(ASN1OctetString cookie,
boolean refreshDeletes)
Creates a new content synchronization done control that provides updated
information about the state of a content synchronization session.
|
ContentSyncDoneControl(java.lang.String oid,
boolean isCritical,
ASN1OctetString value)
Creates a new content synchronization done control which is decoded from
the provided information from a generic control.
|
Modifier and Type | Method and Description |
---|---|
ContentSyncDoneControl |
decodeControl(java.lang.String oid,
boolean isCritical,
ASN1OctetString value)
Creates a new instance of this decodeable control from the provided
information.
|
static ContentSyncDoneControl |
get(LDAPResult result)
Extracts a content synchronization done control from the provided result.
|
java.lang.String |
getControlName()
Retrieves the user-friendly name for this control, if available.
|
ASN1OctetString |
getCookie()
Retrieves a cookie providing updated state information for the
synchronization session, if available.
|
boolean |
refreshDeletes()
Indicates whether the synchronization processing has completed a delete
phase.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this LDAP control to the provided
buffer.
|
decode, decode, decodeControls, decodeJSONControl, deregisterDecodeableControl, encode, encodeControls, equals, getOID, getValue, hashCode, hasValue, isCritical, readFrom, registerDecodeableControl, registerDecodeableControl, toJSONControl, toString, writeTo
@NotNull public static final java.lang.String SYNC_DONE_OID
public ContentSyncDoneControl(@Nullable ASN1OctetString cookie, boolean refreshDeletes)
cookie
- A cookie with an updated synchronization state. It
may be null
if no updated state is
available.refreshDeletes
- Indicates whether the synchronization processing
has completed a delete phase.public ContentSyncDoneControl(@NotNull java.lang.String oid, boolean isCritical, @Nullable ASN1OctetString value) throws LDAPException
oid
- The OID for the control used to create this control.isCritical
- Indicates whether the control is marked critical.value
- The encoded value for the control.LDAPException
- If the provided control cannot be decoded as a
content synchronization done control.@NotNull public ContentSyncDoneControl decodeControl(@NotNull java.lang.String oid, boolean isCritical, @Nullable ASN1OctetString value) throws LDAPException
decodeControl
in interface DecodeableControl
oid
- The OID for the control.isCritical
- Indicates whether the control should be marked
critical.value
- The encoded value for the control. This may be
null
if no value was provided.LDAPException
- If the provided information cannot be decoded as a
valid instance of this decodeable control.@Nullable public static ContentSyncDoneControl get(@NotNull LDAPResult result) throws LDAPException
result
- The result from which to retrieve the content
synchronization done control.null
if the result did not contain a content
synchronization done control.LDAPException
- If a problem is encountered while attempting to
decode the content synchronization done control
contained in the provided result.@Nullable public ASN1OctetString getCookie()
null
if none was included in
the control.public boolean refreshDeletes()
true
if the synchronization processing has completed a
delete phase, or false
if not.@NotNull public java.lang.String getControlName()
getControlName
in class Control