Class EndTransactionRequestImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionRequestImpl
- All Implemented Interfaces:
EndTransactionRequest, org.apache.directory.api.ldap.model.message.ExtendedRequest, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Request, org.apache.directory.api.ldap.model.message.ResultResponseRequest, org.apache.directory.api.ldap.model.message.SingleReplyRequest
public class EndTransactionRequestImpl
extends org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
implements EndTransactionRequest
The EndTransactionRequest implementation. This is for the RFC 5805 End Transaction Request,
which grammar is :
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 }
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
responseFields inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
oidFields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controlsFields inherited from interface EndTransactionRequest
EXTENSION_OID -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of EndTransactionRequestImpl.EndTransactionRequestImpl(int messageId) Creates a new instance of EndTransactionRequestImpl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells if the operation should be committedbyte[]Get the transaction IDvoidsetCommit(boolean commit) Set the Commit flag for this transaction.voidsetTransactionId(byte[] transactionId) Set the transaction ID to commit or rollbacktoString()Methods inherited from class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
addAllControls, addControl, equals, getExtendedResponse, getRequestName, getRequestValue, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setRequestValueMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
getResponse, setResponseMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest
hasResponseMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toStringMethods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedRequest
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNameMethods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponseMethods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest
getResponseType
-
Constructor Details
-
EndTransactionRequestImpl
public EndTransactionRequestImpl(int messageId) Creates a new instance of EndTransactionRequestImpl.- Parameters:
messageId- the message id
-
EndTransactionRequestImpl
public EndTransactionRequestImpl()Creates a new instance of EndTransactionRequestImpl.
-
-
Method Details
-
getResultResponse
- Specified by:
getResultResponsein interfaceorg.apache.directory.api.ldap.model.message.ResultResponseRequest- Overrides:
getResultResponsein classorg.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
-
getCommit
public boolean getCommit()Tells if the operation should be committed- Specified by:
getCommitin interfaceEndTransactionRequest- Returns:
trueif the operation should be committed,falseotherwise
-
setCommit
public void setCommit(boolean commit) Set the Commit flag for this transaction.- Specified by:
setCommitin interfaceEndTransactionRequest- Parameters:
commit-trueif the transaction should be committed,falseif it should be rollbacked.
-
getTransactionId
public byte[] getTransactionId()Get the transaction ID- Specified by:
getTransactionIdin interfaceEndTransactionRequest- Returns:
- The transaction ID
-
setTransactionId
public void setTransactionId(byte[] transactionId) Set the transaction ID to commit or rollback- Specified by:
setTransactionIdin interfaceEndTransactionRequest- Parameters:
transactionId- The transaction ID we got from the startTransaction response
-
toString
- Overrides:
toStringin classorg.apache.directory.api.ldap.model.message.OpaqueExtendedRequest- See Also:
-