org.apache.wicket.threadtest.tester
Class SimpleGetCommand

java.lang.Object
  extended by org.apache.wicket.threadtest.tester.AbstractCommand
      extended by org.apache.wicket.threadtest.tester.AbstractGetCommand
          extended by org.apache.wicket.threadtest.tester.SimpleGetCommand
All Implemented Interfaces:
Command

public class SimpleGetCommand
extends AbstractGetCommand


Constructor Summary
SimpleGetCommand(List<String> urls, int iterations)
          Construct.
SimpleGetCommand(String url, int iterations)
          Construct.
 
Method Summary
protected  void doGet(org.apache.commons.httpclient.HttpClient client, String url)
          Execute a GET request using the provided url.
 boolean getPrintResponse()
          Gets printResponse.
 void setPrintResponse(boolean printResponse)
          Sets printResponse.
 
Methods inherited from class org.apache.wicket.threadtest.tester.AbstractGetCommand
execute
 
Methods inherited from class org.apache.wicket.threadtest.tester.AbstractCommand
getIterations, getUrls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGetCommand

public SimpleGetCommand(List<String> urls,
                        int iterations)
Construct.

Parameters:
urls - URLs to visit
iterations - number of executions of the urls

SimpleGetCommand

public SimpleGetCommand(String url,
                        int iterations)
Construct.

Parameters:
url - URL to visit
iterations - number of executions of the urls
Method Detail

getPrintResponse

public boolean getPrintResponse()
Gets printResponse.

Returns:
printResponse

setPrintResponse

public void setPrintResponse(boolean printResponse)
Sets printResponse.

Parameters:
printResponse - printResponse

doGet

protected void doGet(org.apache.commons.httpclient.HttpClient client,
                     String url)
              throws Exception
Description copied from class: AbstractGetCommand
Execute a GET request using the provided url.

Specified by:
doGet in class AbstractGetCommand
Parameters:
client - the http client
url - The url to GET
Throws:
Exception
See Also:
org.apache.wicket.threadtest.tester.AbstractGetCommand#doGet(org.apache .commons.httpclient.HttpClient, java.lang.String)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.