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.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleHttpServer(org.eclipse.jgit.lib.Repository repository) Constructor forSimpleHttpServer.SimpleHttpServer(org.eclipse.jgit.lib.Repository repository, boolean withSsl) Constructor forSimpleHttpServer. -
Method Summary
-
Constructor Details
-
SimpleHttpServer
public SimpleHttpServer(org.eclipse.jgit.lib.Repository repository) Constructor forSimpleHttpServer.- Parameters:
repository- the repository
-
SimpleHttpServer
public SimpleHttpServer(org.eclipse.jgit.lib.Repository repository, boolean withSsl) Constructor forSimpleHttpServer.- Parameters:
repository- the repositorywithSsl- whether to encrypt the communication
-
-
Method Details
-
start
Start the server- Throws:
Exception- if an error occurred
-
stop
Stop the server.- Throws:
Exception- if an error occurred
-
getUri
public org.eclipse.jgit.transport.URIish getUri()Get theuri.- Returns:
- the uri
-
getSecureUri
public org.eclipse.jgit.transport.URIish getSecureUri()Get thesecureUri.- Returns:
- the secure uri
-