public class CreateDocumentAttachment extends AbstractAPIHandler<io.vertx.core.buffer.Buffer> implements io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
Handler for posting a file
apiInfo, config, eventBusId, logger, operationId, vertx
Constructor and Description |
---|
CreateDocumentAttachment() |
Modifier and Type | Method and Description |
---|---|
EventBusRequestObservable<io.vertx.core.json.JsonObject> |
getObservable(java.lang.String address,
io.vertx.core.MultiMap headers,
io.vertx.core.json.JsonObject incoming) |
protected void |
listenForResponse(EventBusRequestObservable 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, getReqOptions, handle, handleErrorWhileListening, incrementRequestCounter, initHandler, injectIntoObservableValue, listenForBufferResponse, listenForJsonResponse, requestBodyFromAllParams, setObservable
setBodyLimit, setDeleteUploadedFilesOnEnd, setHandleFileUploads, setMergeFormAttributes, setPreallocateBodyBuffer, setUploadsDirectory
protected void listenForResponse(EventBusRequestObservable observable, io.vertx.ext.web.RoutingContext ctx)
listenForResponse
in class AbstractAPIHandler<io.vertx.core.buffer.Buffer>
observable
- The Observable runningpublic EventBusRequestObservable<io.vertx.core.json.JsonObject> getObservable(java.lang.String address, io.vertx.core.MultiMap headers, io.vertx.core.json.JsonObject incoming)
getObservable
in class AbstractAPIHandler<io.vertx.core.buffer.Buffer>
address
- headers
- incoming
- protected 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.buffer.Buffer>
ctx
- header
- The header for the EventBus