org.apache.wicket.threadtest.tester
Class AbstractGetCommand
java.lang.Object
org.apache.wicket.threadtest.tester.AbstractCommand
org.apache.wicket.threadtest.tester.AbstractGetCommand
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- SimpleGetCommand
public abstract class AbstractGetCommand
- extends AbstractCommand
Method Summary |
protected abstract void |
doGet(org.apache.commons.httpclient.HttpClient client,
String url)
Execute a GET request using the provided url. |
void |
execute(CommandRunner runner)
Execute one iteration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGetCommand
public AbstractGetCommand(List<String> urls,
int iterations)
- Construct.
- Parameters:
urls
- URLs to visititerations
- number of executions of the urls
execute
public void execute(CommandRunner runner)
throws Exception
- Description copied from interface:
Command
- Execute one iteration.
- Parameters:
runner
- command runner that executes this command
- Throws:
Exception
- See Also:
Command.execute(CommandRunner)
doGet
protected abstract void doGet(org.apache.commons.httpclient.HttpClient client,
String url)
throws Exception
- Execute a GET request using the provided url.
- Parameters:
url
- The url to GETclient
- the http client
- Throws:
Exception
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.