- java.lang.Object
-
- net.morimekta.tiny.server.http.TinyHttpHandler
-
- net.morimekta.tiny.server.http.TinyReadyHttpHandler
-
- All Implemented Interfaces:
HttpHandler
public final class TinyReadyHttpHandler extends TinyHttpHandler
Simple HTTP handler for getting the readiness of the entire tiny server.
-
-
Constructor Summary
Constructors Constructor Description TinyReadyHttpHandler(Map<String,TinyHealth.ReadyCheck> readyChecks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(HttpExchange exchange)Handle a GET request.
-
-
-
Constructor Detail
-
TinyReadyHttpHandler
public TinyReadyHttpHandler(Map<String,TinyHealth.ReadyCheck> readyChecks)
- Parameters:
readyChecks- Map of readiness checks to be checked by the service.
-
-
Method Detail
-
doGet
protected void doGet(HttpExchange exchange) throws IOException
Description copied from class:TinyHttpHandlerHandle a GET request.- Overrides:
doGetin classTinyHttpHandler- Parameters:
exchange- The HTTP exchange.- Throws:
IOException- If failed to handle the request.
-
-