com.isomorphic.velocity

## Class ResponseDataHandler

- java.lang.Object
- - com.isomorphic.velocity.ResponseDataHandler

-     public class ResponseDataHandler
      extends java.lang.Object

  This class represents the functionality available in Transaction Chaining when you use the $responseData template variable. Please scan the client-side documentation for 'transaction chaining' for a full discussion of Transaction Chaining.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Object` | `first(java.lang.String ds)`
    `java.lang.Object` | `first(java.lang.String ds, java.lang.String operation)`
    `java.lang.Object` | `getFirst()`
    `java.lang.Object` | `getLast()`
    `java.lang.Object` | `last(java.lang.String ds)`
    `java.lang.Object` | `last(java.lang.String ds, java.lang.String operation)`

- - ### Method Detail

    - #### getFirst

          public java.lang.Object getFirst()

      Returns:
        The data member of the first DSResponse in the current queue

    - #### first

          public java.lang.Object first(java.lang.String ds)

      Parameters:
        `ds` - DataSource name
      Returns:
        The data member of the first DSResponse in the current queue for the parameter DataSource

    - #### first

          public java.lang.Object first(java.lang.String ds,
                                        java.lang.String operation)

      Parameters:
        `ds` - DataSource name
        `operation` - A String representing an operation type, like "fetch" or "add"
      Returns:
        The data member of 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 java.lang.Object getLast()

      Returns:
        The data member of the last DSResponse in the current queue

    - #### last

          public java.lang.Object last(java.lang.String ds)

      Parameters:
        `ds` - DataSource name
      Returns:
        The data member of the last DSResponse in the current queue for the parameter DataSource

    - #### last

          public java.lang.Object last(java.lang.String ds,
                                       java.lang.String operation)

      Parameters:
        `ds` - DataSource name
        `operation` - String representing an operation type, like "fetch" or "add"
      Returns:
        The data member of 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)