Package org.eclipse.jgit.pgm.debug
Class LfsStore.AppServer
java.lang.Object
org.eclipse.jgit.pgm.debug.LfsStore.AppServer
- Enclosing class:
- LfsStore
Tiny web application server for testing
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
server
private final org.eclipse.jetty.server.Server server -
connector
private final org.eclipse.jetty.server.ServerConnector connector -
contexts
private final org.eclipse.jetty.server.handler.ContextHandlerCollection contexts -
uri
-
-
Constructor Details
-
AppServer
AppServer(int port)
-
-
Method Details
-
addContext
Create a new servlet context within the server.This method should be invoked before the server is started, once for each context the caller wants to register.
- Parameters:
path
- path of the context; use "/" for the root context if binding to the root is desired.- Returns:
- the context to add servlets into.
-
start
- Throws:
Exception
-
stop
- Throws:
Exception
-
getURI
URI getURI() -
assertNotRunning
private void assertNotRunning()
-