public class DefaultJsonHandler extends AbstractAPIHandler<io.vertx.core.json.JsonArray> implements io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
Default handler when data are requested as Json and retuns as JSON Requests without body have their parameters as JSOn, so they qualify THis class handles most use cases, no empty shell classes needed
apiInfo, config, eventBusId, logger, operationId, vertx
Constructor and Description |
---|
DefaultJsonHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
listenForResponse(EventBusRequestObservable<io.vertx.core.json.JsonArray> observable,
io.vertx.ext.web.RoutingContext ctx) |
protected io.vertx.core.Future<io.vertx.core.json.JsonObject> |
prepareRequestBody(io.vertx.ext.web.RoutingContext ctx,
io.vertx.core.MultiMap header) |
endWithError, endWithError, endWithError, endWithError, getObservable, getReqOptions, handle, handleErrorWhileListening, incrementRequestCounter, initHandler, injectIntoObservableValue, listenForBufferResponse, listenForJsonResponse, requestBodyFromAllParams, setObservable
setBodyLimit, setDeleteUploadedFilesOnEnd, setHandleFileUploads, setMergeFormAttributes, setPreallocateBodyBuffer, setUploadsDirectory
protected void listenForResponse(EventBusRequestObservable<io.vertx.core.json.JsonArray> observable, io.vertx.ext.web.RoutingContext ctx)
listenForResponse
in class AbstractAPIHandler<io.vertx.core.json.JsonArray>
observable
- The Observable runningprotected io.vertx.core.Future<io.vertx.core.json.JsonObject> prepareRequestBody(io.vertx.ext.web.RoutingContext ctx, io.vertx.core.MultiMap header)
prepareRequestBody
in class AbstractAPIHandler<io.vertx.core.json.JsonArray>
ctx
- header
- The header for the EventBus