
public class JettyLauncher extends ServletContainerLauncher
ServletContainerLauncher for an embedded Jetty server.| Modifier and Type | Class and Description |
|---|---|
static class |
JettyLauncher.JDTCompiler16
Ant compiler adapter for Eclipse Java compiler, but with default
target and source compatibility set to Java 6.
|
static class |
JettyLauncher.JettyRequestLogger
Log jetty requests/responses to TreeLogger.
|
protected static class |
JettyLauncher.JettyServletContainer
The resulting
ServletContainer this is launched. |
static class |
JettyLauncher.JettyTreeLogger
An adapter for the Jetty logging system to GWT's TreeLogger.
|
protected static class |
JettyLauncher.WebAppContextWithReload
A
WebAppContext tailored to GWT hosted mode. |
| Constructor and Description |
|---|
JettyLauncher() |
| Modifier and Type | Method and Description |
|---|---|
protected JettyLauncher.JettyServletContainer |
createServletContainer(TreeLogger logger,
File appRootDir,
org.eclipse.jetty.server.Server server,
org.eclipse.jetty.webapp.WebAppContext wac,
int localPort) |
protected org.eclipse.jetty.webapp.WebAppContext |
createWebAppContext(TreeLogger logger,
File appRootDir) |
protected org.eclipse.jetty.server.AbstractConnector |
getConnector(TreeLogger logger) |
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 |
setBaseRequestLogLevel(TreeLogger.Type baseLogLevel) |
void |
setBindAddress(String bindAddress)
Set the bind address for the web server socket.
|
ServletContainer |
start(TreeLogger logger,
int port,
File appRootDir)
Start an embedded HTTP servlet container.
|
getIconBytes, getIconPathpublic String getName()
getName in class ServletContainerLauncherpublic boolean isSecure()
ServletContainerLauncherisSecure in class ServletContainerLauncherpublic boolean processArguments(TreeLogger logger, String arguments)
ServletContainerLauncher
Will be called before ServletContainerLauncher.start(TreeLogger, int, File), if at all.
processArguments in class ServletContainerLauncherlogger - logger to use for warnings/errorsarguments - single string containing the arguments for this SCL, the
format to be defined by the SCLpublic void setBaseRequestLogLevel(TreeLogger.Type baseLogLevel)
public void setBindAddress(String bindAddress)
ServletContainerLauncher
Will be called before ServletContainerLauncher.start(TreeLogger, int, File), if at all.
If not called, the SCL should listen on all addresses.
setBindAddress in class ServletContainerLauncherbindAddress - host name or IP address, suitable for use with
InetAddress.getByName(String)public ServletContainer start(TreeLogger logger, int port, File appRootDir) throws Exception
ServletContainerLauncherstart in class ServletContainerLauncherlogger - 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 reasonprotected JettyLauncher.JettyServletContainer createServletContainer(TreeLogger logger, File appRootDir, org.eclipse.jetty.server.Server server, org.eclipse.jetty.webapp.WebAppContext wac, int localPort)
protected org.eclipse.jetty.webapp.WebAppContext createWebAppContext(TreeLogger logger, File appRootDir)
protected org.eclipse.jetty.server.AbstractConnector getConnector(TreeLogger logger)
Copyright © 2018. All rights reserved.