public class SimpleHttpServer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Repository |
db |
private URIish |
secureUri |
(package private) AppServer |
server |
private URIish |
uri |
| Constructor and Description |
|---|
SimpleHttpServer(Repository repository)
Constructor for
SimpleHttpServer. |
SimpleHttpServer(Repository repository,
boolean withSsl)
Constructor for
SimpleHttpServer. |
| Modifier and Type | Method and Description |
|---|---|
URIish |
getSecureUri()
Get the
secureUri. |
URIish |
getUri()
Get the
uri. |
private static java.lang.String |
nameOf(Repository db) |
private org.eclipse.jetty.servlet.ServletContextHandler |
smart(java.lang.String path) |
void |
start()
Start the server
|
void |
stop()
Stop the server.
|
private URIish |
toURIish(org.eclipse.jetty.servlet.ServletContextHandler app,
java.lang.String name) |
private URIish |
toURIish(java.lang.String path) |
AppServer server
private final Repository db
private URIish uri
private URIish secureUri
public SimpleHttpServer(Repository repository)
SimpleHttpServer.repository - public SimpleHttpServer(Repository repository, boolean withSsl)
SimpleHttpServer.repository - withSsl - public void start()
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
throws java.lang.Exception
java.lang.Exceptionpublic URIish getUri()
uri.public URIish getSecureUri()
secureUri.private org.eclipse.jetty.servlet.ServletContextHandler smart(java.lang.String path)
private static java.lang.String nameOf(Repository db)
private URIish toURIish(java.lang.String path) throws java.net.URISyntaxException
java.net.URISyntaxExceptionprivate URIish toURIish(org.eclipse.jetty.servlet.ServletContextHandler app, java.lang.String name) throws java.net.URISyntaxException
java.net.URISyntaxException