@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class AffinityRequestControl extends Control
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AFFINITY_REQUEST_OID
The OID (1.3.6.1.4.1.36733.2.1.5.2) for the affinity request control.
|
Constructor and Description |
---|
AffinityRequestControl(boolean isCritical)
Creates a new affinity request control with the specified criticality and
a randomly generated affinity value.
|
AffinityRequestControl(boolean isCritical,
ASN1OctetString affinityValue)
Creates a new affinity request control with the specified criticality and
the provided affinity value.
|
AffinityRequestControl(boolean isCritical,
byte[] affinityValue)
Creates a new affinity request control with the specified criticality and
the provided affinity value.
|
AffinityRequestControl(boolean isCritical,
java.lang.String affinityValue)
Creates a new affinity request control with the specified criticality and
the provided affinity value.
|
AffinityRequestControl(Control control)
Creates a new affinity request control that is decoded from
the provided generic control.
|
Modifier and Type | Method and Description |
---|---|
ASN1OctetString |
getAffinityValue()
Retrieves the affinity value for this control.
|
java.lang.String |
getControlName()
Retrieves the user-friendly name for this control, if available.
|
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 AFFINITY_REQUEST_OID
public AffinityRequestControl(boolean isCritical)
isCritical
- Indicates whether the control should be marked
critical.public AffinityRequestControl(boolean isCritical, @NotNull java.lang.String affinityValue)
isCritical
- Indicates whether the control should be marked
critical.affinityValue
- The affinity value to use for the control. It must
not be null
.public AffinityRequestControl(boolean isCritical, @NotNull byte[] affinityValue)
isCritical
- Indicates whether the control should be marked
critical.affinityValue
- The affinity value to use for the control. It must
not be null
.public AffinityRequestControl(boolean isCritical, @NotNull ASN1OctetString affinityValue)
isCritical
- Indicates whether the control should be marked
critical.affinityValue
- The affinity value to use for the control. It must
not be null
.public AffinityRequestControl(@NotNull Control control) throws LDAPException
control
- The generic control to be decoded as an affinity request
control.LDAPException
- If the provided control cannot be decoded as an
affinity request control.@NotNull public ASN1OctetString getAffinityValue()
@NotNull public java.lang.String getControlName()
getControlName
in class Control