Package org.apache.tapestry5.test
Class JettyRunner
java.lang.Object
org.apache.tapestry5.test.JettyRunner
- All Implemented Interfaces:
ServletContainerRunner
- Direct Known Subclasses:
Jetty7Runner
Launches an instance of Jetty.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Needed inside Maven multi-projects to expand a path relative to the module to a complete path.org.eclipse.jetty.server.Server
static void
Main entrypoint used to run the Jetty instance from the command line.void
start()
void
stop()
Immediately shuts down the server instance.toString()
-
Constructor Details
-
JettyRunner
public JettyRunner() -
JettyRunner
- Throws:
Exception
-
-
Method Details
-
configure
public JettyRunner configure(String webappFolder, String contextPath, int port, int sslPort) throws Exception - Throws:
Exception
-
start
- Throws:
Exception
-
stop
Immediately shuts down the server instance.- Specified by:
stop
in interfaceServletContainerRunner
-
getServer
-
toString
-
expand
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:
-
main
Main entrypoint used to run the Jetty instance from the command line.- Throws:
Exception
- Since:
- 5.4
-