org.directwebremoting.extend
Class Calls
java.lang.Object
org.directwebremoting.extend.Calls
- All Implemented Interfaces:
- java.lang.Iterable<Call>
- Direct Known Subclasses:
- JsonRpcCalls
public class Calls
- extends java.lang.Object
- implements java.lang.Iterable<Call>
The request made by the browser which consists of a number of function call
requests and some associated information like the request mode (XHR or
iframe).
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
|
Constructor Summary |
Calls()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Calls
public Calls()
getCallCount
public int getCallCount()
- How many calls are there is this request
- Returns:
- The total number of calls
getCall
public Call getCall(int index)
- Parameters:
index - The index (starts at 0) of the call to fetch
- Returns:
- Returns the calls.
addCall
public void addCall(Call call)
- Add a call to the collection of calls we are about to make
- Parameters:
call - The call to add
setBatchId
public void setBatchId(java.lang.String batchId)
- Parameters:
batchId - The batchId to set.
getBatchId
public java.lang.String getBatchId()
- Returns:
- Returns the batchId.
setInstanceId
public void setInstanceId(java.lang.String instanceId)
- Parameters:
instanceId - The batchId to set.
getInstanceId
public java.lang.String getInstanceId()
- Returns:
- Returns the instanceId.
iterator
public java.util.Iterator<Call> iterator()
- Specified by:
iterator in interface java.lang.Iterable<Call>
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object