Package org.opends.server.controls
Class TransactionIdControl
- java.lang.Object
-
- org.opends.server.types.Control
-
- org.opends.server.controls.TransactionIdControl
-
public class TransactionIdControl extends Control
Control that provides a transaction ID.The transaction ID is related to Common Audit : it is used for tracking the processing of a user-interaction as it passes through the Forgerock stack
The control's value is the UTF-8 encoding of the transaction ID.
-
-
Field Summary
Fields Modifier and Type Field Description static ControlDecoder<TransactionIdControl>DECODERThe Control Decoder that can be used to decode this control.
-
Constructor Summary
Constructors Constructor Description TransactionIdControl(boolean isCritical, String transactionId)Creates a new Transaction Id Control.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTransactionId()Retrieves the transaction id associated with this control.voidtoString(StringBuilder buffer)Appends a string representation of this control to the provided buffer.voidwriteValue(ASN1Writer writer)Writes this control's value to an ASN.1 writer.-
Methods inherited from class org.opends.server.types.Control
getOID, isCritical, toString, write
-
-
-
-
Field Detail
-
DECODER
public static final ControlDecoder<TransactionIdControl> DECODER
The Control Decoder that can be used to decode this control.
-
-
Constructor Detail
-
TransactionIdControl
public TransactionIdControl(boolean isCritical, String transactionId)Creates a new Transaction Id Control.- Parameters:
isCritical- Indicates whether this control should be considered critical to the operation processing.transactionId- The id to pass through this control.
-
-
Method Detail
-
writeValue
public void writeValue(ASN1Writer writer) throws IOException
Writes this control's value to an ASN.1 writer. The value (if any) must be written as an ASN1OctetString.- Specified by:
writeValuein classControl- Parameters:
writer- The ASN.1 output stream to write to.- Throws:
IOException- If a problem occurs while writing to the stream.
-
getTransactionId
public String getTransactionId()
Retrieves the transaction id associated with this control.- Returns:
- The transaction id associated with this control.
-
toString
public void toString(StringBuilder buffer)
Appends a string representation of this control to the provided buffer.
-
-