public abstract class ServletContainerLauncher
extends java.lang.Object
Subclasses should be careful about calling any methods defined on this class or else they risk failing when used with a version of GWT that did not have those methods.
Constructor and Description |
---|
ServletContainerLauncher() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getIconBytes() |
java.lang.String |
getName() |
boolean |
isSecure()
Return true if this servlet container launcher is configured for secure
operation (ie, HTTPS).
|
boolean |
processArguments(TreeLogger logger,
java.lang.String arguments)
Process any supplied arguments.
|
void |
setBindAddress(java.lang.String bindAddress)
Set the bind address for the web server socket.
|
abstract ServletContainer |
start(TreeLogger logger,
int port,
java.io.File appRootDir)
Start an embedded HTTP servlet container.
|
public byte[] getIconBytes()
public java.lang.String getName()
public boolean isSecure()
public boolean processArguments(TreeLogger logger, java.lang.String arguments)
Will be called before start(TreeLogger, int, File)
, if at all.
logger
- logger to use for warnings/errorsarguments
- single string containing the arguments for this SCL, the
format to be defined by the SCLpublic void setBindAddress(java.lang.String bindAddress)
Will be called before start(TreeLogger, int, File)
, if at all.
If not called, the SCL should listen on all addresses.
bindAddress
- host name or IP address, suitable for use with
InetAddress.getByName(String)
public abstract ServletContainer start(TreeLogger logger, int port, java.io.File appRootDir) throws java.net.BindException, java.lang.Exception
logger
- the server loggerport
- the TCP port to serve on; if 0 is requested, a port should be
automatically selectedappRootDir
- the base WAR directoryjava.net.BindException
- if the requested port is already in usejava.lang.Exception
- if the server fails to start for any other reason