Class ResponsesHandler

java.lang.Object
com.isomorphic.velocity.ResponsesHandler

public class ResponsesHandler extends Object
This class represents the functionality available in Transaction Chaining when you use the $responses template variable. Please scan the client-side documentation for 'transaction chaining' for a full discussion of Transaction Chaining.
  • Method Details

    • getFirst

      public DSResponse getFirst()
      Returns:
      The first DSResponse in the current queue
    • first

      public DSResponse first(String ds)
      Parameters:
      ds - DataSource name
      Returns:
      The first DSResponse in the current queue for the parameter DataSource
    • first

      public DSResponse first(String ds, String operation)
      Parameters:
      ds - DataSource name
      operation - String representing an operation type, like "fetch" or "add"
      Returns:
      The first DSResponse in the current queue which is for the parameter DataSource and is in response to a DSRequest of the parameter operation type (eg, returns the response to the first "add" on a given DataSource)
    • getLast

      public DSResponse getLast()
      Returns:
      The last DSResponse in the current queue
    • last

      public DSResponse last(String ds)
      Parameters:
      ds - DataSource name
      Returns:
      The last DSResponse in the current queue for the parameter DataSource
    • last

      public DSResponse last(String ds, String operation)
      Parameters:
      ds - DataSource name
      operation - String representing an operation type, like "fetch" or "add"
      Returns:
      The last DSResponse in the current queue which is for the parameter DataSource and is in response to a DSRequest of the parameter operation type (eg, returns the response to the most recent "add" on a given DataSource)