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.AbstractExtendedResponse
-
- org.apache.directory.api.ldap.extras.extended.startTransaction.StartTransactionResponseImpl
-
- All Implemented Interfaces:
StartTransactionResponse,ExtendedResponse,Message,Response,ResultResponse
public class StartTransactionResponseImpl extends AbstractExtendedResponse implements StartTransactionResponse
The interface for Start Transaction Extended Response. It's described in RFC 5805 :StartTransactionResponse ::= [APPLICATION 24] SEQUENCE { COMPONENTS OF LDAPResult, 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 class org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
responseName
-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
ldapResult
-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
-
-
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 booleanequals(Object obj)Checks to see if an object equals this ExtendedRequest.byte[]getTransactionId()inthashCode()voidsetTransactionId(byte[] transactionId)StringtoString()Get a String representation of an ExtendedResponse-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
getResponseName, setResponseName
-
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse
getResponseName, 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
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractExtendedResponse- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
Description copied from class:AbstractExtendedResponseChecks to see if an object equals this ExtendedRequest.- Overrides:
equalsin classAbstractExtendedResponse- 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:
getTransactionIdin interfaceStartTransactionResponse- Returns:
- The transaction ID if success
-
setTransactionId
public void setTransactionId(byte[] transactionId)
-
toString
public String toString()
Description copied from class:AbstractExtendedResponseGet a String representation of an ExtendedResponse- Overrides:
toStringin classAbstractExtendedResponse- Returns:
- An ExtendedResponse String
- See Also:
Object.toString()
-
-