public class CounterSetHTTPD extends AbstractHTTPD
CounterSet via HTTPD.NanoHTTPD.Request, NanoHTTPD.ResponseIServiceShutdown.OptionsCONTENT_LENGTH, CONTENT_TYPE, DATE, DELETE, ERR_BAD_REQUEST, GET, HTTP_BADREQUEST, HTTP_FORBIDDEN, HTTP_INTERNALERROR, HTTP_METHOD_NOT_ALLOWED, HTTP_NOTFOUND, HTTP_NOTIMPLEMENTED, HTTP_OK, HTTP_REDIRECT, httpDefaultCharacterEncoding, MIME_APPLICATION_URL_ENCODED, MIME_APPLICATION_XML, MIME_DEFAULT_BINARY, MIME_TEXT_HTML, MIME_TEXT_JAVASCRIPT, MIME_TEXT_PLAIN, POST, PUT, UTF8| Constructor and Description |
|---|
CounterSetHTTPD(int port,
ICounterSetAccess accessor) |
CounterSetHTTPD(int port,
ICounterSetAccess accessor,
IService service) |
| Modifier and Type | Method and Description |
|---|---|
NanoHTTPD.Response |
doGet(NanoHTTPD.Request req)
Handle a GET request.
|
protected IService |
getService()
The service reference iff one one specified to the ctor (may be null).
|
doDelete, doPost, doPut, servedecodeParams, encodeParams, getPort, isOpen, main, serveFile, shutdown, shutdownNowpublic CounterSetHTTPD(int port,
ICounterSetAccess accessor)
throws IOException
IOExceptionpublic CounterSetHTTPD(int port,
ICounterSetAccess accessor,
IService service)
throws IOException
port - accessor - service - Optional reference to the service within which this httpd is
hosted.IOExceptionprotected final IService getService()
public NanoHTTPD.Response doGet(NanoHTTPD.Request req) throws Exception
AbstractHTTPDdoGet in interface HTTPGetHandlerdoGet in class AbstractHTTPDreq - The requestExceptionNanoHTTPD.ResponseCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.