vertx-lang-scala-docs_2.12 3.9.1 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package ext
  Definition Classes
    scala
-  package web
  Definition Classes
    ext
-  package handler
  Definition Classes
    web
-  package sockjs
  Definition Classes
    handler
- AuthHandler
- BasicAuthHandler
- BodyHandler
- CSRFHandler
- ChainAuthHandler
- CookieHandler
- CorsHandler
- DigestAuthHandler
- ErrorHandler
- FaviconHandler
- FormLoginHandler
- JWTAuthHandler
- LoggerHandler
- MultiTenantHandler
- OAuth2AuthHandler
- RedirectAuthHandler
- ResponseContentTypeHandler
- ResponseTimeHandler
- SessionHandler
- StaticHandler
- TemplateHandler
- TimeoutHandler
- UserSessionHandler
- VirtualHostHandler

c

io.vertx.scala.ext.web.handler

# BodyHandler 

###
Companion object BodyHandler

#### class BodyHandler extends Handler[RoutingContext]

A handler which gathers the entire request body and sets it on the .

It also handles HTTP file uploads and can be used to limit body sizes.

Linear Supertypes
Handler[RoutingContext], AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. BodyHandler
2. Handler
3. AnyRef
4. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new BodyHandler(_asJava: AnyRef)

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
5.  def asJava: AnyRef
6.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @native() @throws( ... )
7.  final def eq(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef
8.  def equals(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
9.  def finalize(): Unit
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @throws( classOf[java.lang.Throwable] )
10.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
11.  def handle(arg0: RoutingContext): Unit
    Definition Classes
      BodyHandler → Handler
12.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
13.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
14.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
15.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
16.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
17.  def setBodyLimit(bodyLimit: Long): BodyHandler

    Set the maximum body size -1 means unlimited * @param bodyLimit the max size

    Set the maximum body size -1 means unlimited * @param bodyLimit the max size

    returns

      reference to this for fluency

18.  def setDeleteUploadedFilesOnEnd(deleteUploadedFilesOnEnd: Boolean): BodyHandler

    Set whether uploaded files should be removed after handling the request * @param deleteUploadedFilesOnEnd true if uploaded files should be removed after handling the request

    Set whether uploaded files should be removed after handling the request * @param deleteUploadedFilesOnEnd true if uploaded files should be removed after handling the request

    returns

      reference to this for fluency

19.  def setHandleFileUploads(handleFileUploads: Boolean): BodyHandler

    Set whether file uploads will be handled * @param handleFileUploads true if they should be handled

    Set whether file uploads will be handled * @param handleFileUploads true if they should be handled

    returns

      reference to this for fluency

20.  def setMergeFormAttributes(mergeFormAttributes: Boolean): BodyHandler

    Set whether form attributes will be added to the request parameters * @param mergeFormAttributes true if they should be merged

    Set whether form attributes will be added to the request parameters * @param mergeFormAttributes true if they should be merged

    returns

      reference to this for fluency

21.  def setPreallocateBodyBuffer(isPreallocateBodyBuffer: Boolean): BodyHandler

    Pre-allocate the body buffer according to the value parsed from content-length header.

    Pre-allocate the body buffer according to the value parsed from content-length header. The buffer is capped at 64KB * @param isPreallocateBodyBuffer `true` if body buffer is pre-allocated according to the size read from content-length Header. {code false`if body buffer is pre-allocated to 1KB, and is resized dynamically`

    returns

      reference to this for fluency

22.  def setUploadsDirectory(uploadsDirectory: String): BodyHandler

    Set the uploads directory to use * @param uploadsDirectory the uploads directory

    Set the uploads directory to use * @param uploadsDirectory the uploads directory

    returns

      reference to this for fluency

23.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
24.  def toString(): String
    Definition Classes
      AnyRef → Any
25.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
26.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
27.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )

### Inherited from Handler[RoutingContext]

### Inherited from AnyRef

### Inherited from Any

### Ungrouped