Package io.quarkus.amazon.lambda.runtime
Class MockBodyHandler
java.lang.Object
io.quarkus.amazon.lambda.runtime.MockBodyHandler
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>,io.vertx.ext.web.handler.BodyHandler
Copy of Vertx BodyHandlerImpl. Had to do this because I want to get raw bytes of everything
and if it was a form or multipart it would not set the body buffer.
-
Field Summary
Fields inherited from interface io.vertx.ext.web.handler.BodyHandler
DEFAULT_BODY_LIMIT, DEFAULT_DELETE_UPLOADED_FILES_ON_END, DEFAULT_MERGE_FORM_ATTRIBUTES, DEFAULT_PREALLOCATE_BODY_BUFFER, DEFAULT_UPLOADS_DIRECTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(io.vertx.ext.web.RoutingContext context) io.vertx.ext.web.handler.BodyHandlersetBodyLimit(long bodyLimit) io.vertx.ext.web.handler.BodyHandlersetDeleteUploadedFilesOnEnd(boolean deleteUploadedFilesOnEnd) io.vertx.ext.web.handler.BodyHandlersetHandleFileUploads(boolean handleFileUploads) io.vertx.ext.web.handler.BodyHandlersetMergeFormAttributes(boolean mergeFormAttributes) io.vertx.ext.web.handler.BodyHandlersetPreallocateBodyBuffer(boolean isPreallocateBodyBuffer) io.vertx.ext.web.handler.BodyHandlersetUploadsDirectory(String uploadsDirectory)
-
Constructor Details
-
MockBodyHandler
public MockBodyHandler()
-
-
Method Details
-
handle
public void handle(io.vertx.ext.web.RoutingContext context) - Specified by:
handlein interfaceio.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
-
setHandleFileUploads
public io.vertx.ext.web.handler.BodyHandler setHandleFileUploads(boolean handleFileUploads) - Specified by:
setHandleFileUploadsin interfaceio.vertx.ext.web.handler.BodyHandler
-
setBodyLimit
public io.vertx.ext.web.handler.BodyHandler setBodyLimit(long bodyLimit) - Specified by:
setBodyLimitin interfaceio.vertx.ext.web.handler.BodyHandler
-
setUploadsDirectory
- Specified by:
setUploadsDirectoryin interfaceio.vertx.ext.web.handler.BodyHandler
-
setMergeFormAttributes
public io.vertx.ext.web.handler.BodyHandler setMergeFormAttributes(boolean mergeFormAttributes) - Specified by:
setMergeFormAttributesin interfaceio.vertx.ext.web.handler.BodyHandler
-
setDeleteUploadedFilesOnEnd
public io.vertx.ext.web.handler.BodyHandler setDeleteUploadedFilesOnEnd(boolean deleteUploadedFilesOnEnd) - Specified by:
setDeleteUploadedFilesOnEndin interfaceio.vertx.ext.web.handler.BodyHandler
-
setPreallocateBodyBuffer
public io.vertx.ext.web.handler.BodyHandler setPreallocateBodyBuffer(boolean isPreallocateBodyBuffer) - Specified by:
setPreallocateBodyBufferin interfaceio.vertx.ext.web.handler.BodyHandler
-