public class BodyHandler extends Object implements Handler<RoutingContext>
It also handles HTTP file uploads and can be used to limit body sizes.
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Constructor and Description |
---|
BodyHandler(BodyHandler delegate) |
Modifier and Type | Method and Description |
---|---|
static BodyHandler |
create()
Create a body handler with defaults
|
static BodyHandler |
create(String uploadDirectory)
Create a body handler and use the given upload directory.
|
Object |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static BodyHandler |
newInstance(BodyHandler arg) |
BodyHandler |
setBodyLimit(long bodyLimit)
Set the maximum body size -1 means unlimited
|
BodyHandler |
setDeleteUploadedFilesOnEnd(boolean deleteUploadedFilesOnEnd)
Set whether uploaded files should be removed after handling the request
|
BodyHandler |
setMergeFormAttributes(boolean mergeFormAttributes)
Set whether form attributes will be added to the request parameters
|
BodyHandler |
setUploadsDirectory(String uploadsDirectory)
Set the uploads directory to use
|
public BodyHandler(BodyHandler delegate)
public Object getDelegate()
public void handle(RoutingContext arg0)
Handler
handle
in interface Handler<RoutingContext>
arg0
- the event to handlepublic static BodyHandler create()
public static BodyHandler create(String uploadDirectory)
uploadDirectory
- the uploads directorypublic BodyHandler setBodyLimit(long bodyLimit)
bodyLimit
- the max sizepublic BodyHandler setUploadsDirectory(String uploadsDirectory)
uploadsDirectory
- the uploads directorypublic BodyHandler setMergeFormAttributes(boolean mergeFormAttributes)
mergeFormAttributes
- true if they should be mergedpublic BodyHandler setDeleteUploadedFilesOnEnd(boolean deleteUploadedFilesOnEnd)
deleteUploadedFilesOnEnd
- true if uploaded files should be removed after handling the requestpublic static BodyHandler newInstance(BodyHandler arg)
Copyright © 2016. All rights reserved.