@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class TransactionIDRequestControl extends Control
ModifyRequest modifyRequest = new ModifyRequest("dc=example,dc=com",
new Modification(ModificationType.REPLACE, "attrName", "attrValue"));
modifyRequest.addControl(new TransactionIDRequestControl("test-txn-id"));
LDAPResult modifyResult = connection.modify(modifyRequest);
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TRANSACTION_ID_REQUEST_OID
The OID (1.3.6.1.4.1.36733.2.1.5.1) for the transaction ID request control.
|
| Constructor and Description |
|---|
TransactionIDRequestControl(boolean isCritical,
java.lang.String transactionID)
Creates a new transaction ID request control with the specified identifier
and criticality.
|
TransactionIDRequestControl(Control control)
Creates a new transaction ID request control which is decoded from
the provided generic control.
|
TransactionIDRequestControl(java.lang.String transactionID)
Creates a new transaction ID request control with the specified identifier.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getControlName()
Retrieves the user-friendly name for this control, if available.
|
java.lang.String |
getTransactionID()
Retrieves the transaction ID to use for this control.
|
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 TRANSACTION_ID_REQUEST_OID
public TransactionIDRequestControl(@NotNull java.lang.String transactionID)
transactionID - The transaction ID to use for this control. It must
not be null.public TransactionIDRequestControl(boolean isCritical, @NotNull java.lang.String transactionID)
isCritical - Indicates whether the control should be marked
critical.transactionID - The transaction ID to use for this control. It must
not be null.public TransactionIDRequestControl(@NotNull Control control) throws LDAPException
control - The generic control to be decoded as a transaction ID
request control.LDAPException - If the provided control cannot be decoded as a
transaction ID request control.@NotNull public java.lang.String getTransactionID()
@NotNull public java.lang.String getControlName()
getControlName in class Control