Package org.apache.tapestry5.test
Class TomcatRunner
- java.lang.Object
 - 
- org.apache.tapestry5.test.TomcatRunner
 
 
- 
- All Implemented Interfaces:
 ServletContainerRunner
- Direct Known Subclasses:
 Tomcat6Runner
public class TomcatRunner extends Object implements ServletContainerRunner
Launches an instance of Tomcat.- Since:
 - 5.3
 
 
- 
- 
Constructor Summary
Constructors Constructor Description TomcatRunner(String webappFolder, String contextPath, int port, int sslPort) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringexpand(String moduleLocalPath)Needed inside Maven multi-projects to expand a path relative to the module to a complete path.voidstop()Immediately shuts down the server instance.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
TomcatRunner
public TomcatRunner(String webappFolder, String contextPath, int port, int sslPort) throws Exception
- Throws:
 Exception
 
 - 
 
- 
Method Detail
- 
stop
public void stop()
Immediately shuts down the server instance.- Specified by:
 stopin interfaceServletContainerRunner
 
- 
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
 
 - 
 
 -