public class RouterNanoHTTPD extends NanoHTTPD
| Modifier and Type | Class and Description |
|---|---|
static class |
RouterNanoHTTPD.DefaultHandler
General nanolet to inherit from if you provide text or html data, only
fixed size responses will be generated.
|
static class |
RouterNanoHTTPD.DefaultStreamHandler
General nanolet to inherit from if you provide stream data, only chucked
responses will be generated.
|
static class |
RouterNanoHTTPD.Error404UriHandler
Handling error 404 - unrecognized urls
|
static class |
RouterNanoHTTPD.GeneralHandler
General nanolet to print debug info's as a html page.
|
static class |
RouterNanoHTTPD.IndexHandler
Handling index
|
static class |
RouterNanoHTTPD.NotImplementedHandler |
static class |
RouterNanoHTTPD.StaticPageHandler
General nanolet to print debug info's as a html page.
|
static class |
RouterNanoHTTPD.UriResource |
static interface |
RouterNanoHTTPD.UriResponder |
static class |
RouterNanoHTTPD.UriRouter |
NanoHTTPD.AsyncRunner, NanoHTTPD.ClientHandler, NanoHTTPD.ContentType, NanoHTTPD.Cookie, NanoHTTPD.CookieHandler, NanoHTTPD.DefaultAsyncRunner, NanoHTTPD.DefaultServerSocketFactory, NanoHTTPD.DefaultTempFile, NanoHTTPD.DefaultTempFileManager, NanoHTTPD.HTTPSession, NanoHTTPD.IHTTPSession, NanoHTTPD.Method, NanoHTTPD.Response, NanoHTTPD.ResponseException, NanoHTTPD.SecureServerSocketFactory, NanoHTTPD.ServerRunnable, NanoHTTPD.ServerSocketFactory, NanoHTTPD.TempFile, NanoHTTPD.TempFileManager, NanoHTTPD.TempFileManagerFactoryasyncRunner, MIME_HTML, MIME_PLAINTEXT, MIME_TYPES, SOCKET_READ_TIMEOUT| Constructor and Description |
|---|
RouterNanoHTTPD(int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMappings()
default routings, they are over writable.
|
void |
addRoute(String url,
Class<?> handler,
Object... initParameter) |
static String |
normalizeUri(String value) |
void |
removeRoute(String url) |
NanoHTTPD.Response |
serve(NanoHTTPD.IHTTPSession session) |
closeAllConnections, createClientHandler, createServerRunnable, decodeParameters, decodeParameters, decodePercent, getHostname, getListeningPort, getMimeTypeForFile, getServerSocketFactory, getTempFileManagerFactory, isAlive, makeSecure, makeSSLSocketFactory, makeSSLSocketFactory, makeSSLSocketFactory, mimeTypes, newChunkedResponse, newFixedLengthResponse, newFixedLengthResponse, newFixedLengthResponse, serve, setAsyncRunner, setServerSocketFactory, setTempFileManagerFactory, start, start, start, stop, useGzipWhenAccepted, wasStartedpublic void addMappings()
router.setNotFoundHandler(GeneralHandler.class);
public void removeRoute(String url)
public NanoHTTPD.Response serve(NanoHTTPD.IHTTPSession session)
Copyright © 2012–2016 nanohttpd. All rights reserved.