Package org.eclipse.jgit.junit.http
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 Summary
Constructors Constructor Description SimpleHttpServer(Repository repository)
Constructor forSimpleHttpServer
.SimpleHttpServer(Repository repository, boolean withSsl)
Constructor forSimpleHttpServer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIish
getSecureUri()
Get thesecureUri
.URIish
getUri()
Get theuri
.void
start()
Start the servervoid
stop()
Stop the server.
-
-
-
Constructor Detail
-
SimpleHttpServer
public SimpleHttpServer(Repository repository)
Constructor forSimpleHttpServer
.- Parameters:
repository
-
-
SimpleHttpServer
public SimpleHttpServer(Repository repository, boolean withSsl)
Constructor forSimpleHttpServer
.- Parameters:
repository
-withSsl
-
-
-