Package fi.iki.elonen.router
Class RouterNanoHTTPD.DefaultStreamHandler
java.lang.Object
fi.iki.elonen.router.RouterNanoHTTPD.DefaultStreamHandler
- All Implemented Interfaces:
RouterNanoHTTPD.UriResponder
- Direct Known Subclasses:
RouterNanoHTTPD.DefaultHandler
- Enclosing class:
RouterNanoHTTPD
public abstract static class RouterNanoHTTPD.DefaultStreamHandler
extends Object
implements RouterNanoHTTPD.UriResponder
General nanolet to inherit from if you provide stream data, only chucked
responses will be generated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete
(RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) get
(RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) abstract InputStream
getData()
abstract String
abstract NanoHTTPD.Response.IStatus
other
(String method, RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) post
(RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) put
(RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session)
-
Constructor Details
-
DefaultStreamHandler
public DefaultStreamHandler()
-
-
Method Details
-
getMimeType
-
getStatus
-
getData
-
get
public NanoHTTPD.Response get(RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) - Specified by:
get
in interfaceRouterNanoHTTPD.UriResponder
-
post
public NanoHTTPD.Response post(RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) - Specified by:
post
in interfaceRouterNanoHTTPD.UriResponder
-
put
public NanoHTTPD.Response put(RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) - Specified by:
put
in interfaceRouterNanoHTTPD.UriResponder
-
delete
public NanoHTTPD.Response delete(RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) - Specified by:
delete
in interfaceRouterNanoHTTPD.UriResponder
-
other
public NanoHTTPD.Response other(String method, RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) - Specified by:
other
in interfaceRouterNanoHTTPD.UriResponder
-