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, 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 StartTransactionResponseImpl extends org.apache.directory.api.ldap.model.message.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
    Create a new StartTransactionResponseImpl instance
    StartTransactionResponseImpl(byte[] transactionId)
    Create a new StartTransactionResponseImpl instance
    StartTransactionResponseImpl(int messageId, byte[] transactionId)
    Create a new StartTransactionResponseImpl instance
    StartTransactionResponseImpl(int messageId, org.apache.directory.api.ldap.model.message.ResultCodeEnum resultCode, byte[] transactionId)
    Create a new StartTransactionResponseImpl object
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    byte[]
    Get the transaction ID
    int
    void
    setTransactionId(byte[] transactionId)
    Set the transaction ID
     

    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 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 Details

    • StartTransactionResponseImpl

      public StartTransactionResponseImpl(int messageId, org.apache.directory.api.ldap.model.message.ResultCodeEnum resultCode, byte[] transactionId)
      Create a new StartTransactionResponseImpl object
      Parameters:
      messageId - The messageId
      resultCode - the result code
      transactionId - The transaction ID
    • StartTransactionResponseImpl

      public StartTransactionResponseImpl(int messageId, byte[] transactionId)
      Create a new StartTransactionResponseImpl instance
      Parameters:
      messageId - The request's messageId
      transactionId - 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 Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
      See Also:
    • getTransactionId

      public byte[] getTransactionId()
      Get the transaction ID
      Specified by:
      getTransactionId in interface StartTransactionResponse
      Returns:
      The transaction ID if success
    • setTransactionId

      public void setTransactionId(byte[] transactionId)
      Set the transaction ID
      Parameters:
      transactionId - The transaction ID to set
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.directory.api.ldap.model.message.AbstractExtendedResponse
      See Also: