static class LfsStore.AppServer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private org.eclipse.jetty.server.ServerConnector |
connector |
private org.eclipse.jetty.server.handler.ContextHandlerCollection |
contexts |
private org.eclipse.jetty.server.Server |
server |
private java.net.URI |
uri |
| Constructor and Description |
|---|
AppServer(int port) |
| Modifier and Type | Method and Description |
|---|---|
(package private) org.eclipse.jetty.servlet.ServletContextHandler |
addContext(java.lang.String path)
Create a new servlet context within the server.
|
private void |
assertNotRunning() |
(package private) java.net.URI |
getURI() |
(package private) void |
start() |
(package private) void |
stop() |
private final org.eclipse.jetty.server.Server server
private final org.eclipse.jetty.server.ServerConnector connector
private final org.eclipse.jetty.server.handler.ContextHandlerCollection contexts
private java.net.URI uri
org.eclipse.jetty.servlet.ServletContextHandler addContext(java.lang.String path)
This method should be invoked before the server is started, once for each context the caller wants to register.
path - path of the context; use "/" for the root context if
binding to the root is desired.void start()
throws java.lang.Exception
java.lang.Exceptionvoid stop() throws java.lang.Exception
java.lang.Exceptionjava.net.URI getURI()
private void assertNotRunning()