public abstract class ServletContainerLauncher extends 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() |
String |
getIconPath()
Deprecated.
see
getIconBytes() instead. |
String |
getName() |
boolean |
isSecure()
Return true if this servlet container launcher is configured for secure
operation (ie, HTTPS).
|
boolean |
processArguments(TreeLogger logger,
String arguments)
Process any supplied arguments.
|
void |
setBindAddress(String bindAddress)
Set the bind address for the web server socket.
|
abstract ServletContainer |
start(TreeLogger logger,
int port,
File appRootDir)
Start an embedded HTTP servlet container.
|
public byte[] getIconBytes()
@Deprecated public String getIconPath()
getIconBytes()
instead.public String getName()
public boolean isSecure()
public boolean processArguments(TreeLogger logger, 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(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, File appRootDir) throws BindException, Exception
logger
- the server loggerport
- the TCP port to serve on; if 0 is requested, a port should be
automatically selectedappRootDir
- the base WAR directoryBindException
- if the requested port is already in useException
- if the server fails to start for any other reasonCopyright © 2018. All rights reserved.