public interface RequestHandler
Most handlers will want to use the AbstractJsonRequestHandler
as a starting point, which produces a valid HTTP response.
Modifier and Type | Method and Description |
---|---|
String[] |
getPaths()
Returns an array of REST URL's under which this handler can be registered.
|
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.
|
CompletableFuture<org.apache.flink.shaded.netty4.io.netty.handler.codec.http.FullHttpResponse> handleRequest(Map<String,String> pathParams, Map<String,String> queryParams, JobManagerGateway jobManagerGateway)
Exceptions may be throws and will be handled.
pathParams
- The map of REST path parameters, decoded by the router.queryParams
- The map of query parameters.jobManagerGateway
- to talk to the JobManager.String[] getPaths()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.