Class StartTransactionResponseImpl
- 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.ExtendedResponseImpl
-
- org.apache.directory.api.ldap.extras.extended.startTransaction.StartTransactionResponseImpl
-
- All Implemented Interfaces:
StartTransactionResponse
,ExtendedResponse
,Message
,Response
,ResultResponse
public class StartTransactionResponseImpl extends ExtendedResponseImpl implements StartTransactionResponse
The interface for Start Transaction Extended Response. 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 contain a transaction identifier when the result is SUCCESS.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.extended.startTransaction.StartTransactionResponse
EXTENSION_OID
-
-
Constructor Summary
Constructors Constructor Description StartTransactionResponseImpl()
Create a new StartTransactionResponseImpl instanceStartTransactionResponseImpl(byte[] transactionId)
Create a new StartTransactionResponseImpl instanceStartTransactionResponseImpl(int messageId, byte[] transactionId)
Create a new StartTransactionResponseImpl instanceStartTransactionResponseImpl(int messageId, ResultCodeEnum resultCode, byte[] transactionId)
Create a new StartTransactionResponseImpl object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Checks to see if an object equals this ExtendedRequest.String
getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. its name).byte[]
getTransactionId()
int
hashCode()
void
setTransactionId(byte[] transactionId)
-
Methods inherited from class org.apache.directory.api.ldap.model.message.ExtendedResponseImpl
setResponseName, toString
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
getLdapResult
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse
setResponseName
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
-
-
-
Constructor Detail
-
StartTransactionResponseImpl
public StartTransactionResponseImpl(int messageId, ResultCodeEnum resultCode, byte[] transactionId)
Create a new StartTransactionResponseImpl object- Parameters:
messageId
- The messageIdresultCode
- the result codetransactionId
- The transaction ID
-
StartTransactionResponseImpl
public StartTransactionResponseImpl(int messageId, byte[] transactionId)
Create a new StartTransactionResponseImpl instance- Parameters:
messageId
- The request's messageIdtransactionId
- The transaction ID
-
StartTransactionResponseImpl
public StartTransactionResponseImpl(byte[] transactionId)
Create a new StartTransactionResponseImpl instance- Parameters:
transactionId
- The transaction ID
-
StartTransactionResponseImpl
public StartTransactionResponseImpl()
Create a new StartTransactionResponseImpl instance
-
-
Method Detail
-
getResponseName
public String getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. its name). It's a null value for the Cancel response- Specified by:
getResponseName
in interfaceExtendedResponse
- Overrides:
getResponseName
in classExtendedResponseImpl
- Returns:
- the OID of the extended response type.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classExtendedResponseImpl
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
Description copied from class:ExtendedResponseImpl
Checks to see if an object equals this ExtendedRequest.- Overrides:
equals
in classExtendedResponseImpl
- Parameters:
obj
- the object to be checked for equality- Returns:
- true if the obj equals this ExtendedRequest, false otherwise
- See Also:
Object.equals(Object)
-
getTransactionId
public byte[] getTransactionId()
- Specified by:
getTransactionId
in interfaceStartTransactionResponse
- Returns:
- The transaction ID if success
-
setTransactionId
public void setTransactionId(byte[] transactionId)
-
-