public abstract class AbstractJsonRequestHandler extends Object implements RequestHandler
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJsonRequestHandler(Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
abstract CompletableFuture<String> |
handleJsonRequest(Map<String,String> pathParams,
Map<String,String> queryParams,
JobManagerGateway jobManagerGateway)
Core method that handles the request and generates the response.
|
CompletableFuture<org.apache.flink.shaded.netty4.io.netty.handler.codec.http.FullHttpResponse> |
handleRequest(Map<String,String> pathParams,
Map<String,String> queryParams,
JobManagerGateway jobManagerGateway)
Core method that handles the request and generates the response.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPathsprotected final Executor executor
protected AbstractJsonRequestHandler(Executor executor)
public CompletableFuture<org.apache.flink.shaded.netty4.io.netty.handler.codec.http.FullHttpResponse> handleRequest(Map<String,String> pathParams, Map<String,String> queryParams, JobManagerGateway jobManagerGateway)
RequestHandlerExceptions may be throws and will be handled.
handleRequest in interface RequestHandlerpathParams - The map of REST path parameters, decoded by the router.queryParams - The map of query parameters.jobManagerGateway - to talk to the JobManager.public abstract CompletableFuture<String> handleJsonRequest(Map<String,String> pathParams, Map<String,String> queryParams, JobManagerGateway jobManagerGateway)
pathParams - The map of REST path parameters, decoded by the router.queryParams - The map of query parameters.jobManagerGateway - to communicate with the JobManager.Exception - Handlers may forward exceptions. Exceptions of type
NotFoundException will cause a HTTP 404
response with the exception message, other exceptions will cause a HTTP 500 response
with the exception stack trace.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.