public class KawaHttpHandler
extends java.lang.Object
implements com.sun.net.httpserver.HttpHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
KawaHttpHandler.Context |
| Modifier and Type | Field and Description |
|---|---|
static int |
serverBacklog |
static com.sun.net.httpserver.HttpServer |
serverInstance |
| Constructor and Description |
|---|
KawaHttpHandler(gnu.kawa.io.Path resourceRoot) |
KawaHttpHandler(java.lang.String resourceRoot) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAutoHandler(java.lang.String uriRoot,
java.lang.String resourceRoot) |
static com.sun.net.httpserver.HttpServer |
getServerInstance() |
void |
handle(com.sun.net.httpserver.HttpExchange t) |
static void |
startServer(int port) |
public static com.sun.net.httpserver.HttpServer serverInstance
public static int serverBacklog
public KawaHttpHandler(java.lang.String resourceRoot)
public KawaHttpHandler(gnu.kawa.io.Path resourceRoot)
public void handle(com.sun.net.httpserver.HttpExchange t)
throws java.io.IOException
handle in interface com.sun.net.httpserver.HttpHandlerjava.io.IOExceptionpublic static com.sun.net.httpserver.HttpServer getServerInstance()
throws java.io.IOException
java.io.IOExceptionpublic static void addAutoHandler(java.lang.String uriRoot,
java.lang.String resourceRoot)
throws java.io.IOException
java.io.IOExceptionpublic static void startServer(int port)
throws java.io.IOException
java.io.IOException