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.
- Alphabetic
- By Inheritance
- BodyHandler
- Handler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-  new BodyHandler(_asJava: AnyRef)
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
-  def asJava: AnyRef
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        handle(arg0: RoutingContext): Unit
      
      
      - Definition Classes
- BodyHandler → Handler
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        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 
 
- 
      
      
      
        
      
    
      
        
        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 
 
- 
      
      
      
        
      
    
      
        
        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 
 
- 
      
      
      
        
      
    
      
        
        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 
 
- 
      
      
      
        
      
    
      
        
        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 trueif body buffer is pre-allocated according to the size read from content-length Header. {code falseif body buffer is pre-allocated to 1KB, and is resized dynamically- returns
- reference to this for fluency 
 
- 
      
      
      
        
      
    
      
        
        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 
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )