public class EndTransactionRequestImpl extends OpaqueExtendedRequest implements EndTransactionRequest
ExtendedRequest ::= [APPLICATION 23] SEQUENCE { requestName [0] LDAPOID, requestValue [1] OCTET STRING OPTIONAL }where 'requestName' is 1.3.6.1.1.21.3 and requestValue is a BER encoded value. The syntax for this value is :
txnEndReq ::= SEQUENCE { commit BOOLEAN DEFAULT TRUE, identifier OCTET STRING }
EXTENSION_OID
Constructor and Description |
---|
EndTransactionRequestImpl()
Creates a new instance of EndTransactionRequestImpl.
|
EndTransactionRequestImpl(int messageId)
Creates a new instance of EndTransactionRequestImpl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCommit() |
EndTransactionResponse |
getResultResponse()
The result containing response for this request.
|
byte[] |
getTransactionId() |
void |
setCommit(boolean commit)
Set the Commit flag for this transaction.
|
void |
setTransactionId(byte[] transactionId)
Set the transaction ID to commit or rollback
|
String |
toString()
Get a String representation of an Extended Request
|
addAllControls, addControl, equals, getExtendedResponse, getRequestName, getRequestValue, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setRequestValue
getResponse, setResponse
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestName
getResponseType
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
public EndTransactionRequestImpl(int messageId)
messageId
- the message idpublic EndTransactionRequestImpl()
public EndTransactionResponse getResultResponse()
getResultResponse
in interface ResultResponseRequest
getResultResponse
in class OpaqueExtendedRequest
public boolean getCommit()
getCommit
in interface EndTransactionRequest
public void setCommit(boolean commit)
setCommit
in interface EndTransactionRequest
commit
- true if the transaction should be committed, false if
it should be rollbacked.public byte[] getTransactionId()
getTransactionId
in interface EndTransactionRequest
public void setTransactionId(byte[] transactionId)
setTransactionId
in interface EndTransactionRequest
transactionId
- The transaction ID we got from the startTransaction responsepublic String toString()
OpaqueExtendedRequest
toString
in class OpaqueExtendedRequest
Object.toString()
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.