org.directwebremoting.extend
Class Replies

java.lang.Object
  extended by org.directwebremoting.extend.Replies
All Implemented Interfaces:
java.lang.Iterable<Reply>

public class Replies
extends java.lang.Object
implements java.lang.Iterable<Reply>

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
Replies(Calls calls)
           
 
Method Summary
 void addReply(Reply reply)
          Add a reply to the collection of replies we are about to make
 Calls getCalls()
           
 Reply getReply(int index)
           
 int getReplyCount()
          How many replies are there is this request
 java.util.Iterator<Reply> iterator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Replies

public Replies(Calls calls)
Parameters:
calls - The set of calls to that we are the reply to
Method Detail

getReplyCount

public int getReplyCount()
How many replies are there is this request

Returns:
The total number of replies

getReply

public Reply getReply(int index)
Parameters:
index - The index (starts at 0) of the reply to fetch
Returns:
Returns the replies.

addReply

public void addReply(Reply reply)
Add a reply to the collection of replies we are about to make

Parameters:
reply - The reply to add

getCalls

public Calls getCalls()
Returns:
Returns the batchId.

iterator

public java.util.Iterator<Reply> iterator()
Specified by:
iterator in interface java.lang.Iterable<Reply>

Copyright 2008