Class RestService

java.lang.Object
fi.iki.elonen.NanoHTTPD
kieker.analysis.generic.source.rest.RestService

public class RestService
extends fi.iki.elonen.NanoHTTPD
Rest service handler for Kieker based on NanoHTTPD.
Since:
1.15
Author:
Reiner Jung
  • Nested Class Summary

    Nested classes/interfaces inherited from class fi.iki.elonen.NanoHTTPD

    fi.iki.elonen.NanoHTTPD.AsyncRunner, fi.iki.elonen.NanoHTTPD.ClientHandler, fi.iki.elonen.NanoHTTPD.ContentType, fi.iki.elonen.NanoHTTPD.Cookie, fi.iki.elonen.NanoHTTPD.CookieHandler, fi.iki.elonen.NanoHTTPD.DefaultAsyncRunner, fi.iki.elonen.NanoHTTPD.DefaultServerSocketFactory, fi.iki.elonen.NanoHTTPD.DefaultTempFile, fi.iki.elonen.NanoHTTPD.DefaultTempFileManager, fi.iki.elonen.NanoHTTPD.HTTPSession, fi.iki.elonen.NanoHTTPD.IHTTPSession, fi.iki.elonen.NanoHTTPD.Method, fi.iki.elonen.NanoHTTPD.Response, fi.iki.elonen.NanoHTTPD.ResponseException, fi.iki.elonen.NanoHTTPD.SecureServerSocketFactory, fi.iki.elonen.NanoHTTPD.ServerRunnable, fi.iki.elonen.NanoHTTPD.ServerSocketFactory, fi.iki.elonen.NanoHTTPD.TempFile, fi.iki.elonen.NanoHTTPD.TempFileManager, fi.iki.elonen.NanoHTTPD.TempFileManagerFactory
  • Field Summary

    Fields inherited from class fi.iki.elonen.NanoHTTPD

    asyncRunner, MIME_HTML, MIME_PLAINTEXT, MIME_TYPES, SOCKET_READ_TIMEOUT
  • Constructor Summary

    Constructors 
    Constructor Description
    RestService​(RestServiceStage stage, java.lang.String hostname, int port, IAccessHandler accessHandler)
    Create a new rest service.
  • Method Summary

    Modifier and Type Method Description
    fi.iki.elonen.NanoHTTPD.Response serve​(fi.iki.elonen.NanoHTTPD.IHTTPSession session)  

    Methods inherited from class fi.iki.elonen.NanoHTTPD

    closeAllConnections, createClientHandler, createServerRunnable, decodeParameters, decodeParameters, decodePercent, getHostname, getListeningPort, getMimeTypeForFile, getServerSocketFactory, getTempFileManagerFactory, isAlive, makeSecure, makeSSLSocketFactory, makeSSLSocketFactory, makeSSLSocketFactory, mimeTypes, newChunkedResponse, newFixedLengthResponse, newFixedLengthResponse, newFixedLengthResponse, serve, setAsyncRunner, setServerSocketFactory, setTempFileManagerFactory, start, start, start, stop, useGzipWhenAccepted, wasStarted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RestService

      public RestService​(RestServiceStage stage, java.lang.String hostname, int port, IAccessHandler accessHandler)
      Create a new rest service.
      Parameters:
      stage - stage handling the deserialized event.
      hostname - hostname to listen for when accessed (aka virtual host name); can be null
      port - port to listen on
      accessHandler - handler for remote IP adresses checking whether the ip address should be accepted
  • Method Details

    • serve

      public fi.iki.elonen.NanoHTTPD.Response serve​(fi.iki.elonen.NanoHTTPD.IHTTPSession session)
      Overrides:
      serve in class fi.iki.elonen.NanoHTTPD