Class SimpleHttpServer
java.lang.Object
org.eclipse.jgit.junit.http.SimpleHttpServer
Simple http server for testing http access to Git repositories.
Authentication with hardcoded credentials user:agitter password:letmein.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleHttpServer(Repository repository) Constructor forSimpleHttpServer.SimpleHttpServer(Repository repository, boolean withSsl) Constructor forSimpleHttpServer. -
Method Summary
-
Field Details
-
server
AppServer server -
db
-
uri
-
secureUri
-
-
Constructor Details
-
SimpleHttpServer
Constructor forSimpleHttpServer.- Parameters:
repository-
-
SimpleHttpServer
Constructor forSimpleHttpServer.- Parameters:
repository-withSsl-
-
-
Method Details
-
start
-
stop
-
getUri
-
getSecureUri
-
smart
-
nameOf
-
toURIish
- Throws:
URISyntaxException
-
toURIish
private URIish toURIish(org.eclipse.jetty.servlet.ServletContextHandler app, String name) throws URISyntaxException - Throws:
URISyntaxException
-