Package com.isomorphic.velocity
Class ResponsesHandler
java.lang.Object
com.isomorphic.velocity.ResponsesHandler
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
- Returns:
- The first DSResponse in the current queue
-
first
- Parameters:
ds
- DataSource name- Returns:
- The first DSResponse in the current queue for the parameter DataSource
-
first
- Parameters:
ds
- DataSource nameoperation
- 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
- Returns:
- The last DSResponse in the current queue
-
last
- Parameters:
ds
- DataSource name- Returns:
- The last DSResponse in the current queue for the parameter DataSource
-
last
- Parameters:
ds
- DataSource nameoperation
- 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)
-