public static class RouterNanoHTTPD.UriRouter extends Object
| Constructor and Description |
|---|
RouterNanoHTTPD.UriRouter() |
| Modifier and Type | Method and Description |
|---|---|
NanoHTTPD.Response |
process(NanoHTTPD.IHTTPSession session)
Search in the mappings if the given url matches some of the rules If
there are more than one marches returns the rule with less parameters
e.g. mapping 1 = /user/:id mapping 2 = /user/help if the incoming uri
is www.example.com/user/help - mapping 2 is returned if the incoming
uri is www.example.com/user/3232 - mapping 1 is returned
|
void |
setNotFoundHandler(Class<?> handler) |
void |
setNotImplemented(Class<?> handler) |
public NanoHTTPD.Response process(NanoHTTPD.IHTTPSession session)
url - public void setNotFoundHandler(Class<?> handler)
public void setNotImplemented(Class<?> handler)
Copyright © 2012–2016 nanohttpd. All rights reserved.