@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ChangeSequenceNumberResponseControl extends Control implements DecodeableControl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHANGE_SEQUENCE_NUMBER_RESPONSE_OID
The OID (1.3.6.1.4.1.42.2.27.9.5.9) for the change sequence number response
control.
|
Constructor and Description |
---|
ChangeSequenceNumberResponseControl(java.lang.String csn)
Creates a new change sequence number response control with the provided
CSN.
|
ChangeSequenceNumberResponseControl(java.lang.String oid,
boolean isCritical,
ASN1OctetString value)
Creates a new change sequence number response control with the provided
information.
|
Modifier and Type | Method and Description |
---|---|
ChangeSequenceNumberResponseControl |
decodeControl(java.lang.String oid,
boolean isCritical,
ASN1OctetString value)
Creates a new instance of this decodeable control from the provided
information.
|
static ChangeSequenceNumberResponseControl |
get(LDAPResult result)
Extracts a change sequence number response control from the provided
result.
|
java.lang.String |
getControlName()
Retrieves the user-friendly name for this control, if available.
|
java.lang.String |
getCSN()
Retrieves the CSN returned by the server.
|
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 CHANGE_SEQUENCE_NUMBER_RESPONSE_OID
public ChangeSequenceNumberResponseControl(@NotNull java.lang.String csn)
csn
- The change sequence number returned by the server. It must
not be null
.public ChangeSequenceNumberResponseControl(@NotNull java.lang.String oid, boolean isCritical, @Nullable ASN1OctetString value) throws LDAPException
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 control cannot be decoded as a
change sequence number response control.@NotNull public ChangeSequenceNumberResponseControl 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 ChangeSequenceNumberResponseControl get(@NotNull LDAPResult result) throws LDAPException
result
- The result from which to retrieve the change sequence
number response control.null
if the result did not contain a
change sequence number response control.LDAPException
- If a problem is encountered while attempting to
decode the change sequence number response control
contained in the provided result.@NotNull public java.lang.String getCSN()
@NotNull public java.lang.String getControlName()
getControlName
in class Control