com.google.gwt.core.ext
Class ServletContainerLauncher

java.lang.Object
  extended by com.google.gwt.core.ext.ServletContainerLauncher

public abstract class ServletContainerLauncher
extends java.lang.Object

Defines the service provider interface for launching servlet containers that can be used by the GWT development mode.


Constructor Summary
ServletContainerLauncher()
           
 
Method Summary
 java.lang.String getIconPath()
           
 java.lang.String getName()
           
abstract  ServletContainer start(TreeLogger logger, int port, java.io.File appRootDir)
          Start an embedded HTTP servlet container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContainerLauncher

public ServletContainerLauncher()
Method Detail

getIconPath

public java.lang.String getIconPath()
Returns:
a path to a 24-pixel high image file (relative to the classpath) to be used for this servlet container, or null if none.

getName

public java.lang.String getName()
Returns:
a short human-readable name of this servlet container, or null if no name should be displayed.

start

public abstract ServletContainer start(TreeLogger logger,
                                       int port,
                                       java.io.File appRootDir)
                                throws java.net.BindException,
                                       java.lang.Exception
Start an embedded HTTP servlet container.

Parameters:
logger - the server logger
port - the TCP port to serve on; if 0 is requested, a port should be automatically selected
appRootDir - the base WAR directory
Returns:
the launched servlet container
Throws:
java.net.BindException - if the requested port is already in use
java.lang.Exception - if the server fails to start for any other reason