public abstract class Transaction
extends java.lang.Object
Constructor and Description |
---|
Transaction(java.lang.String method) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(ServiceSpec service)
Executes the transaction.
|
java.lang.String |
getError() |
java.lang.Exception |
getException() |
int |
getResponseCode() |
JSONArray |
getResult()
If the transaction returns resource objects, these are
retrieved as an array of JSON objects.
|
public Transaction(java.lang.String method)
method
- HTTP method (GET/PUT/POST/DELETE)public int getResponseCode()
public java.lang.String getError()
public java.lang.Exception getException()
public JSONArray getResult()
public boolean execute(ServiceSpec service)
service
- ServiceSpec holding service/session data