public class CounterSetHTTPD extends AbstractHTTPD
CounterSet
via HTTPD.NanoHTTPD.Request, NanoHTTPD.Response
IServiceShutdown.Options
CONTENT_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, serve
decodeParams, encodeParams, getPort, isOpen, main, serveFile, shutdown, shutdownNow
public CounterSetHTTPD(int port, ICounterSetAccess accessor) throws IOException
IOException
public CounterSetHTTPD(int port, ICounterSetAccess accessor, IService service) throws IOException
port
- accessor
- service
- Optional reference to the service within which this httpd is
hosted.IOException
protected final IService getService()
public NanoHTTPD.Response doGet(NanoHTTPD.Request req) throws Exception
AbstractHTTPD
doGet
in interface HTTPGetHandler
doGet
in class AbstractHTTPD
req
- The requestException
NanoHTTPD.Response
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.