com.google.gwt.core.ext
Class ServletContainerLauncher
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletContainerLauncher
public ServletContainerLauncher()
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 loggerport
- the TCP port to serve on; if 0 is requested, a port should be
automatically selectedappRootDir
- 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