org.apache.tapestry.integration
Class JettyRunner
java.lang.Object
org.apache.tapestry.integration.JettyRunner
public class JettyRunner
- extends Object
Constructor Summary |
JettyRunner(String warPath)
Defaults the context path to "/" and the port to 80. |
JettyRunner(String contextPath,
int port,
String warPath)
Creates and starts a new instance of Jetty. |
DEFAULT_CONTEXT_PATH
public static final String DEFAULT_CONTEXT_PATH
- See Also:
- Constant Field Values
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
JettyRunner
public JettyRunner(String warPath)
- Defaults the context path to "/" and the port to 80.
JettyRunner
public JettyRunner(String contextPath,
int port,
String warPath)
- Creates and starts a new instance of Jetty. This should be done from a test case setup
method.
- Parameters:
contextPath
- the context path for the deployed applicationport
- the port number used to access the applicationwarPath
- the path to the exploded web application (typically, "src/main/webapp")
main
public static void main(String[] args)
stop
public void stop()
- Stops the Jetty instance. This should be called from a test case tear down method.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.