public class WebServer
extends java.lang.Object
Constructor and Description |
---|
WebServer() |
WebServer(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyRoutes(org.simpleframework.http.Request request,
org.simpleframework.http.Response response) |
WebServer |
configure(Configuration configuration) |
protected boolean |
devMode() |
protected Payload |
errorPage(int code,
java.lang.Exception e) |
static void |
main(java.lang.String[] args) |
protected void |
onError(java.lang.Exception e,
org.simpleframework.http.Response response) |
protected void |
onError(int code,
java.lang.Exception e,
org.simpleframework.http.Response response) |
protected void |
onPageNotFound(Match match,
org.simpleframework.http.Response response) |
int |
port() |
void |
reset() |
WebServer |
start(int port) |
WebServer |
startOnRandomPort() |
WebServer |
startSSL(int port,
java.nio.file.Path pathCertificate,
java.nio.file.Path pathPrivateKey) |
void |
stop() |
public WebServer(Configuration configuration)
public WebServer()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public WebServer configure(Configuration configuration)
public WebServer startOnRandomPort()
public WebServer start(int port)
public WebServer startSSL(int port, java.nio.file.Path pathCertificate, java.nio.file.Path pathPrivateKey)
public int port()
public void reset()
public void stop()
protected void applyRoutes(org.simpleframework.http.Request request, org.simpleframework.http.Response response) throws java.io.IOException
java.io.IOException
protected void onPageNotFound(Match match, org.simpleframework.http.Response response)
protected void onError(java.lang.Exception e, org.simpleframework.http.Response response)
protected void onError(int code, java.lang.Exception e, org.simpleframework.http.Response response)
protected Payload errorPage(int code, java.lang.Exception e)
protected boolean devMode()
Copyright © 2013. All Rights Reserved.