public class WebServer
extends java.lang.Object
| Constructor and Description |
|---|
WebServer() |
WebServer(java.lang.Class<? extends Configuration> configuration) |
WebServer(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyRoutes(RouteCollection routeCollection,
Context context) |
WebServer |
configure(Configuration configuration) |
protected Payload |
errorPage(java.lang.Exception e) |
protected Payload |
errorPage(Payload payload) |
protected Payload |
errorPage(Payload payload,
java.lang.Exception e) |
protected void |
handleServerError(Context context,
java.lang.Exception e) |
static void |
main(java.lang.String[] args) |
int |
port() |
void |
reset() |
WebServer |
start() |
WebServer |
start(int port) |
WebServer |
startOnRandomPort() |
WebServer |
startSSL(int port,
java.util.List<java.nio.file.Path> pathChain,
java.nio.file.Path pathPrivateKey) |
WebServer |
startSSL(int port,
java.util.List<java.nio.file.Path> pathChain,
java.nio.file.Path pathPrivateKey,
java.util.List<java.nio.file.Path> pathTrustAnchors) |
WebServer |
startSSL(int port,
java.nio.file.Path pathCertificate,
java.nio.file.Path pathPrivateKey) |
void |
stop() |
public WebServer()
public WebServer(java.lang.Class<? extends Configuration> configuration)
public WebServer(Configuration configuration)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic WebServer configure(Configuration configuration)
public WebServer startOnRandomPort()
public WebServer start()
public WebServer start(int port)
public WebServer startSSL(int port, java.nio.file.Path pathCertificate, java.nio.file.Path pathPrivateKey)
public WebServer startSSL(int port, java.util.List<java.nio.file.Path> pathChain, java.nio.file.Path pathPrivateKey)
public WebServer startSSL(int port, java.util.List<java.nio.file.Path> pathChain, java.nio.file.Path pathPrivateKey, java.util.List<java.nio.file.Path> pathTrustAnchors)
public int port()
public void reset()
public void stop()
protected void applyRoutes(RouteCollection routeCollection, Context context) throws java.io.IOException
java.io.IOExceptionprotected void handleServerError(Context context, java.lang.Exception e)
protected Payload errorPage(java.lang.Exception e)
Copyright © 2014. All Rights Reserved.