org.directwebremoting.extend
Class Calls

java.lang.Object
  extended by 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()
           
 
Method Summary
 void addCall(Call call)
          Add a call to the collection of calls we are about to make
 java.lang.String getBatchId()
           
 Call getCall(int index)
           
 int getCallCount()
          How many calls are there is this request
 java.util.Iterator<Call> iterator()
           
 void setBatchId(java.lang.String batchId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Calls

public Calls()
Method Detail

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.

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

Copyright 2008