Class EndTransactionResponseImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractResponse
org.apache.directory.api.ldap.model.message.AbstractResultResponse
org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
org.apache.directory.api.ldap.extras.extended.endTransaction.EndTransactionResponseImpl
- All Implemented Interfaces:
EndTransactionResponse, org.apache.directory.api.ldap.model.message.ExtendedResponse, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Response, org.apache.directory.api.ldap.model.message.ResultResponse
public class EndTransactionResponseImpl
extends org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
implements EndTransactionResponse
The End Transaction Extended Response implementation. It's described in RFC 5805 :
ExtendedResponse ::= [APPLICATION 24] SEQUENCE {
COMPONENTS OF LDAPResult,
responseName [10] LDAPOID OPTIONAL,
responseValue [11] OCTET STRING OPTIONAL }
where the responseName is not present, and the responseValue contains
a BER encoded value, defined by the following grammar :
txnEndRes ::= SEQUENCE {
messageID MessageID OPTIONAL,
-- msgid associated with non-success resultCode
updatesControls SEQUENCE OF updateControls SEQUENCE {
messageID MessageID,
-- msgid associated with controls
controls Controls
} OPTIONAL
}
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
responseNameFields inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
ldapResultFields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controlsFields inherited from interface EndTransactionResponse
EXTENSION_OID -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new StartTransactionResponseImpl instanceEndTransactionResponseImpl(int messageId) Create a new EndTransactionResponseImpl instanceEndTransactionResponseImpl(int failedMessageId, org.apache.directory.api.ldap.model.message.ResultCodeEnum resultCode) Create a new EndTransactionResponseImpl object -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGet the failed message IDGet the list of update controlsinthashCode()voidsetFailedMessageId(int failedMessageId) Set the failed message IDvoidsetUpdateControls(List<UpdateControls> updateControls) Set the update controlsMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
getResponseName, setResponseName, toStringMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
getLdapResultMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringMethods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse
getResponseName, setResponseNameMethods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdMethods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
Constructor Details
-
EndTransactionResponseImpl
public EndTransactionResponseImpl(int failedMessageId, org.apache.directory.api.ldap.model.message.ResultCodeEnum resultCode) Create a new EndTransactionResponseImpl object- Parameters:
failedMessageId- The faulty messageIdresultCode- the result code
-
EndTransactionResponseImpl
public EndTransactionResponseImpl(int messageId) Create a new EndTransactionResponseImpl instance- Parameters:
messageId- The request's messageId
-
EndTransactionResponseImpl
public EndTransactionResponseImpl()Create a new StartTransactionResponseImpl instance
-
-
Method Details
-
getFailedMessageId
public int getFailedMessageId()Get the failed message ID- Specified by:
getFailedMessageIdin interfaceEndTransactionResponse- Returns:
- The Message ID if failure
-
setFailedMessageId
public void setFailedMessageId(int failedMessageId) Set the failed message ID- Specified by:
setFailedMessageIdin interfaceEndTransactionResponse- Parameters:
failedMessageId- The messageId that causes the failure
-
getUpdateControls
Get the list of update controls- Specified by:
getUpdateControlsin interfaceEndTransactionResponse- Returns:
- the list of <messageId, Controls> processed within the transaction
-
setUpdateControls
Set the update controls- Parameters:
updateControls- the updateControls to set
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.directory.api.ldap.model.message.AbstractExtendedResponse
-
equals
- Overrides:
equalsin classorg.apache.directory.api.ldap.model.message.AbstractExtendedResponse- See Also:
-