public class DefaultPimHandler 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 |
---|
DefaultPimHandler() |
Modifier and Type | Method and Description |
---|---|
protected java.util.EnumSet<RequestOptionFlags> |
getReqOptions()
Options to check when looking at header and parameters
|
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, handle, handleErrorWhileListening, incrementRequestCounter, initHandler, injectIntoObservableValue, listenForBufferResponse, listenForJsonResponse, requestBodyFromAllParams, setObservable
setBodyLimit, setDeleteUploadedFilesOnEnd, setHandleFileUploads, setMergeFormAttributes, setPreallocateBodyBuffer, setUploadsDirectory
protected java.util.EnumSet<RequestOptionFlags> getReqOptions()
AbstractAPIHandler
Options to check when looking at header and parameters
getReqOptions
in class AbstractAPIHandler<io.vertx.core.json.JsonArray>
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