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]
| 26 | * @author Joe Walker [joe at getahead dot ltd dot uk] |
| 27 | */ |
| 28 | public class Calls implements Iterable<Call> |
| 29 | { |
| 30 | /** |
| 31 | * How many calls are there is this request |
| 32 | * @return The total number of calls |
| 33 | */ |
| 34 | public int getCallCount() |
| 35 | { |
| 36 | return calls.size(); |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * @param index The index (starts at 0) of the call to fetch |
| 41 | * @return Returns the calls. |
| 42 | */ |
| 43 | public Call getCall(int index) |
| 44 | { |
| 45 | return calls.get(index); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Add a call to the collection of calls we are about to make |
| 50 | * @param call The call to add |
| 51 | */ |
| 52 | public void addCall(Call call) |
| 53 | { |
| 54 | calls.add(call); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * @param batchId The batchId to set. |
| 59 | */ |
| 60 | public void setBatchId(String batchId) |
| 61 | { |
| 62 | this.batchId = batchId; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * @return Returns the batchId. |
| 67 | */ |
| 68 | public String getBatchId() |
| 69 | { |
| 70 | return batchId; |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * @param instanceId The batchId to set. |
| 75 | */ |
| 76 | public void setInstanceId(String instanceId) |
| 77 | { |
| 78 | this.instanceId = instanceId; |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * @return Returns the instanceId. |
| 83 | */ |
| 84 | public String getInstanceId() |
| 85 | { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…