Class HTTPServer.NotImplementedHandler
java.lang.Object
ch.autumo.beetroot.server.HTTPServer.DefaultStreamHandler
ch.autumo.beetroot.server.HTTPServer.DefaultHandler
ch.autumo.beetroot.server.HTTPServer.NotImplementedHandler
- All Implemented Interfaces:
HTTPServer.UriResponder
- Enclosing class:
HTTPServer
Fallback handler for routes that are registered without an implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMIME type of the streamed data.org.nanohttpd.protocols.http.response.IStatusHTTP status of the response.getText()Text or HTML content returned by this handler.Methods inherited from class HTTPServer.DefaultHandler
get, getDataMethods inherited from class HTTPServer.DefaultStreamHandler
delete, other, post, putModifier and TypeMethodDescriptionorg.nanohttpd.protocols.http.response.Responsedelete(HTTPServer.UriResource uriResource, Map<String, String> urlParams, org.nanohttpd.protocols.http.IHTTPSession session) Handles an HTTP DELETE request.org.nanohttpd.protocols.http.response.Responseother(String method, HTTPServer.UriResource uriResource, Map<String, String> urlParams, org.nanohttpd.protocols.http.IHTTPSession session) Handles any other HTTP method.org.nanohttpd.protocols.http.response.Responsepost(HTTPServer.UriResource uriResource, Map<String, String> urlParams, org.nanohttpd.protocols.http.IHTTPSession session) Handles an HTTP POST request.org.nanohttpd.protocols.http.response.Responseput(HTTPServer.UriResource uriResource, Map<String, String> urlParams, org.nanohttpd.protocols.http.IHTTPSession session) Handles an HTTP PUT request.
-
Constructor Details
-
NotImplementedHandler
public NotImplementedHandler()Default constructor.
-
-
Method Details
-
getText
Description copied from class:HTTPServer.DefaultHandlerText or HTML content returned by this handler.- Specified by:
getTextin classHTTPServer.DefaultHandler- Returns:
- the response body
-
getMimeType
Description copied from class:HTTPServer.DefaultStreamHandlerMIME type of the streamed data.- Specified by:
getMimeTypein classHTTPServer.DefaultStreamHandler- Returns:
- the MIME type
-
getStatus
public org.nanohttpd.protocols.http.response.IStatus getStatus()Description copied from class:HTTPServer.DefaultHandlerHTTP status of the response.- Specified by:
getStatusin classHTTPServer.DefaultHandler- Returns:
- the response status
-