Class SimpleHttpServer

java.lang.Object
org.eclipse.jgit.junit.http.SimpleHttpServer

public class SimpleHttpServer extends Object
Simple http server for testing http access to Git repositories. Authentication with hardcoded credentials user:agitter password:letmein.
  • Constructor Details

    • SimpleHttpServer

      public SimpleHttpServer(Repository repository)
      Constructor for SimpleHttpServer.
      Parameters:
      repository -
    • SimpleHttpServer

      public SimpleHttpServer(Repository repository, boolean withSsl)
      Constructor for SimpleHttpServer.
      Parameters:
      repository -
      withSsl -
  • Method Details

    • start

      public void start() throws Exception
      Start the server
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Stop the server.
      Throws:
      Exception
    • getUri

      public URIish getUri()
      Get the uri.
      Returns:
      the uri
    • getSecureUri

      public URIish getSecureUri()
      Get the secureUri.
      Returns:
      the secure uri