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.
|
getHost
public JettyServletContainer(TreeLogger logger, org.eclipse.jetty.server.Server server, org.eclipse.jetty.webapp.WebAppContext wac, int actualPort, File appRootDir)
public int getPort()
ServletContainer
getPort
in class ServletContainer
public void refresh() throws UnableToCompleteException
ServletContainer
ServletContainer.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 ServletContainer
UnableToCompleteException
public void stop() throws UnableToCompleteException
ServletContainer
stop
in class ServletContainer
UnableToCompleteException
Copyright © 2018. All rights reserved.