com.mycila.testing.plugins.jetty.config
Interface RawConfig

All Known Subinterfaces:
Config
All Known Implementing Classes:
DefaultConfig

public interface RawConfig

Set of configuration properties required to run the servlet container and deploy the web application. DefaultConfig can be used as default base implementation.

See Also:
DefaultConfig

Method Summary
 String getContextPath()
          The web application context path.
 Class<? extends ServerLifeCycleListener> getServerLifeCycleListenerClass()
          The ServerLifeCycleListener class which allow customization of the server configuration.
 int getServerPort()
          The web application server port.
 String getWarLocation()
          The location of the WAR file to load.
 boolean isDeployWebapp()
          True to deploy a new webapp (and undeploy the old one), false to deploy a webapp only if there is no deployed one.
 boolean isSkip()
          True to skip starting server or deploying webapp.
 boolean isStartServer()
          True to start a new server (and stop the old one), false to start a server only if there is no running one.
 

Method Detail

getWarLocation

String getWarLocation()
The location of the WAR file to load. The search is based on the current directory.

Default is . If there is more than one WAR file the test will fail, else the WAR file will be loaded and the test run.

WAR locator strategy :

Returns:
location of the WAR file to load.

getServerPort

int getServerPort()
The web application server port. Default is .

Returns:
the web application server port.

getContextPath

String getContextPath()
The web application context path. Must starts with a slash '/' but doesn't end with one except for root context path. Default is .

Returns:
the web application context path.

isStartServer

boolean isStartServer()
True to start a new server (and stop the old one), false to start a server only if there is no running one. If true then isDeployWebapp() is logically force to true. Default .

Returns:
true to start a new server (and stop the old one), false to start a server only if there is no running one.

isDeployWebapp

boolean isDeployWebapp()
True to deploy a new webapp (and undeploy the old one), false to deploy a webapp only if there is no deployed one. Default

Returns:
true to deploy a new webapp (and undeploy the old one), false to deploy a webapp only if there is no deployed one.

isSkip

boolean isSkip()
True to skip starting server or deploying webapp. Default is .

Returns:
true to skip starting server or deploying webapp.

getServerLifeCycleListenerClass

Class<? extends ServerLifeCycleListener> getServerLifeCycleListenerClass()
The ServerLifeCycleListener class which allow customization of the server configuration. Default is .

Returns:
the server lifecycle listener class.


Copyright © 2010-2011 Mycila. All Rights Reserved.