
protected static class JettyLauncher.JettyServletContainer extends ServletContainer
ServletContainer this is launched.| Constructor and Description |
|---|
JettyServletContainer(TreeLogger logger,
org.eclipse.jetty.server.Server server,
org.eclipse.jetty.webapp.WebAppContext wac,
int actualPort,
File appRootDir) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPort()
Returns the port on which the server is running.Used to construct a URL to
reach the servlet container.
|
void |
refresh()
Causes the web app to pick up changes made within the app root dir while
running.
|
void |
stop()
Stops the running servlet container.
|
getHostpublic JettyServletContainer(TreeLogger logger, org.eclipse.jetty.server.Server server, org.eclipse.jetty.webapp.WebAppContext wac, int actualPort, File appRootDir)
public int getPort()
ServletContainergetPort in class ServletContainerpublic void refresh()
throws UnableToCompleteException
ServletContainerServletContainer.stop() has been
called.
TODO(bruce): need to determine whether all the important servlet containers
will let us do this (e.g. ensure they don't lock files we would need to
update)refresh in class ServletContainerUnableToCompleteExceptionpublic void stop()
throws UnableToCompleteException
ServletContainerstop in class ServletContainerUnableToCompleteExceptionCopyright © 2018. All rights reserved.