org.apache.tapestry5.test
Class Jetty7Runner

java.lang.Object
  extended by org.apache.tapestry5.test.Jetty7Runner
All Implemented Interfaces:
ServletContainerRunner

public class Jetty7Runner
extends Object
implements ServletContainerRunner

Launches an instance of Jetty7.


Constructor Summary
Jetty7Runner()
           
Jetty7Runner(String webappFolder, String contextPath, int port, int sslPort)
           
 
Method Summary
 Jetty7Runner configure(String webappFolder, String contextPath, int port, int sslPort)
           
protected  String expand(String moduleLocalPath)
          Needed inside Maven multi-projects to expand a path relative to the module to a complete path.
 org.eclipse.jetty.server.Server getServer()
           
 void start()
           
 void stop()
          Immediately shuts down the server instance.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Jetty7Runner

public Jetty7Runner()

Jetty7Runner

public Jetty7Runner(String webappFolder,
                    String contextPath,
                    int port,
                    int sslPort)
             throws Exception
Throws:
Exception
Method Detail

configure

public Jetty7Runner configure(String webappFolder,
                              String contextPath,
                              int port,
                              int sslPort)
                       throws Exception
Throws:
Exception

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
Immediately shuts down the server instance.

Specified by:
stop in interface ServletContainerRunner

getServer

public org.eclipse.jetty.server.Server getServer()

toString

public String toString()
Overrides:
toString in class Object

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:
TapestryTestConstants.MODULE_BASE_DIR


Copyright © 2003-2012 The Apache Software Foundation.