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
-
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
-
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 nullport
- port to listen onaccessHandler
- 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 classfi.iki.elonen.NanoHTTPD
-