org.apache.tapestry.integration
Class JettyRunner

java.lang.Object
  extended by org.apache.tapestry.integration.JettyRunner

public class JettyRunner
extends Object


Field Summary
static String DEFAULT_CONTEXT_PATH
           
static int DEFAULT_PORT
           
 
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.
 
Method Summary
static void main(String[] args)
           
 void stop()
          Stops the Jetty instance.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 application
port - the port number used to access the application
warPath - the path to the exploded web application (typically, "src/main/webapp")
Method Detail

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.