Class LfsStore.AppServer

java.lang.Object
org.eclipse.jgit.pgm.debug.LfsStore.AppServer
Enclosing class:
LfsStore

static class LfsStore.AppServer extends Object
Tiny web application server for testing
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.eclipse.jetty.server.ServerConnector
     
    private final org.eclipse.jetty.server.handler.ContextHandlerCollection
     
    private final org.eclipse.jetty.server.Server
     
    private URI
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AppServer(int port)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) org.eclipse.jetty.servlet.ServletContextHandler
    Create a new servlet context within the server.
    private void
     
    (package private) URI
     
    (package private) void
     
    (package private) void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      private URI uri
  • Constructor Details

    • AppServer

      AppServer(int port)
  • Method Details

    • addContext

      org.eclipse.jetty.servlet.ServletContextHandler addContext(String path)
      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

      void start() throws Exception
      Throws:
      Exception
    • stop

      void stop() throws Exception
      Throws:
      Exception
    • getURI

      URI getURI()
    • assertNotRunning

      private void assertNotRunning()