Package org.apache.tapestry5.test
Class JettyRunner
- java.lang.Object
 - 
- org.apache.tapestry5.test.JettyRunner
 
 
- 
- All Implemented Interfaces:
 ServletContainerRunner
- Direct Known Subclasses:
 Jetty7Runner
public class JettyRunner extends Object implements ServletContainerRunner
Launches an instance of Jetty. 
- 
- 
Constructor Summary
Constructors Constructor Description JettyRunner()JettyRunner(String webappFolder, String contextPath, int port, int sslPort) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JettyRunnerconfigure(String webappFolder, String contextPath, int port, int sslPort)protected Stringexpand(String moduleLocalPath)Needed inside Maven multi-projects to expand a path relative to the module to a complete path.org.eclipse.jetty.server.ServergetServer()static voidmain(String[] args)Main entrypoint used to run the Jetty instance from the command line.voidstart()voidstop()Immediately shuts down the server instance.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
JettyRunner
public JettyRunner()
 
- 
JettyRunner
public JettyRunner(String webappFolder, String contextPath, int port, int sslPort) throws Exception
- Throws:
 Exception
 
 - 
 
- 
Method Detail
- 
configure
public JettyRunner configure(String webappFolder, String contextPath, int port, int sslPort) throws Exception
- Throws:
 Exception
 
- 
stop
public void stop()
Immediately shuts down the server instance.- Specified by:
 stopin interfaceServletContainerRunner
 
- 
getServer
public org.eclipse.jetty.server.Server getServer()
 
- 
expand
protected String expand(String moduleLocalPath)
Needed inside Maven multi-projects to expand a path relative to the module to a complete path. If the path already is absolute and points to an existing directory, it will be used unchanged.- Parameters:
 moduleLocalPath-- Returns:
 - expanded path
 - See Also:
 TapestryRunnerConstants.MODULE_BASE_DIR
 
 - 
 
 -