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

public class MockBodyHandler extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(io.vertx.ext.web.RoutingContext context)
     
    io.vertx.ext.web.handler.BodyHandler
    setBodyLimit(long bodyLimit)
     
    io.vertx.ext.web.handler.BodyHandler
    setDeleteUploadedFilesOnEnd(boolean deleteUploadedFilesOnEnd)
     
    io.vertx.ext.web.handler.BodyHandler
    setHandleFileUploads(boolean handleFileUploads)
     
    io.vertx.ext.web.handler.BodyHandler
    setMergeFormAttributes(boolean mergeFormAttributes)
     
    io.vertx.ext.web.handler.BodyHandler
    setPreallocateBodyBuffer(boolean isPreallocateBodyBuffer)
     
    io.vertx.ext.web.handler.BodyHandler
    setUploadsDirectory(String uploadsDirectory)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MockBodyHandler

      public MockBodyHandler()
  • Method Details

    • handle

      public void handle(io.vertx.ext.web.RoutingContext context)
      Specified by:
      handle in interface io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
    • setHandleFileUploads

      public io.vertx.ext.web.handler.BodyHandler setHandleFileUploads(boolean handleFileUploads)
      Specified by:
      setHandleFileUploads in interface io.vertx.ext.web.handler.BodyHandler
    • setBodyLimit

      public io.vertx.ext.web.handler.BodyHandler setBodyLimit(long bodyLimit)
      Specified by:
      setBodyLimit in interface io.vertx.ext.web.handler.BodyHandler
    • setUploadsDirectory

      public io.vertx.ext.web.handler.BodyHandler setUploadsDirectory(String uploadsDirectory)
      Specified by:
      setUploadsDirectory in interface io.vertx.ext.web.handler.BodyHandler
    • setMergeFormAttributes

      public io.vertx.ext.web.handler.BodyHandler setMergeFormAttributes(boolean mergeFormAttributes)
      Specified by:
      setMergeFormAttributes in interface io.vertx.ext.web.handler.BodyHandler
    • setDeleteUploadedFilesOnEnd

      public io.vertx.ext.web.handler.BodyHandler setDeleteUploadedFilesOnEnd(boolean deleteUploadedFilesOnEnd)
      Specified by:
      setDeleteUploadedFilesOnEnd in interface io.vertx.ext.web.handler.BodyHandler
    • setPreallocateBodyBuffer

      public io.vertx.ext.web.handler.BodyHandler setPreallocateBodyBuffer(boolean isPreallocateBodyBuffer)
      Specified by:
      setPreallocateBodyBuffer in interface io.vertx.ext.web.handler.BodyHandler