Package org.eclipse.jgit.junit.http
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
Start the server- Throws:
Exception
-
stop
Stop the server.- Throws:
Exception
-
getUri
Get theuri
.- Returns:
- the uri
-
getSecureUri
Get thesecureUri
.- Returns:
- the secure uri
-
smart
-
nameOf
-
toURIish
- Throws:
URISyntaxException
-
toURIish
private URIish toURIish(org.eclipse.jetty.servlet.ServletContextHandler app, String name) throws URISyntaxException - Throws:
URISyntaxException
-