|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.core.ext.ServletContainerLauncher
public abstract class ServletContainerLauncher
Defines the service provider interface for launching servlet containers that can be used by the GWT development mode.
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 Summary | |
---|---|
ServletContainerLauncher()
|
Method Summary | |
---|---|
byte[] |
getIconBytes()
|
java.lang.String |
getIconPath()
Deprecated. see getIconBytes() instead. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletContainerLauncher()
Method Detail |
---|
public byte[] getIconBytes()
@Deprecated public java.lang.String getIconPath()
getIconBytes()
instead.
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 SCL
public 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 directory
java.net.BindException
- if the requested port is already in use
java.lang.Exception
- if the server fails to start for any other reason
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |