com.reuters.msgtest.fixture
Class Responses

java.lang.Object
  extended bycom.reuters.msgtest.fixture.Responses

public class Responses
extends java.lang.Object

Author:
Michael Ward

Constructor Summary
Responses(RvTestConfiguration rvTestConfiguration)
           
 
Method Summary
 void addAll(java.util.Collection c)
           
 void addResponse(Response response)
          Add a Respnse to the collection.
 Response getResponse(int i)
          Return a Response from the collection.
 Response getResponse(java.lang.String name)
          Return a Response from the collection with a given name.
 java.util.Iterator iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Responses

public Responses(RvTestConfiguration rvTestConfiguration)
Method Detail

addResponse

public void addResponse(Response response)
Add a Respnse to the collection. Will create from a URI if applicable

Parameters:
response - a Response value

getResponse

public Response getResponse(int i)
Return a Response from the collection.

Parameters:
i - an int value
Returns:
a Response value

getResponse

public Response getResponse(java.lang.String name)
                     throws RvTestException
Return a Response from the collection with a given name. It return the first match if successful and null if no match was found.

Parameters:
name - The name of a Response to retrieve.
Throws:
RvTestException - If the response is not found

iterator

public java.util.Iterator iterator()

size

public int size()

addAll

public void addAll(java.util.Collection c)


Copyright © 2002-2004 The RVTest Team. All Rights Reserved.