public class BodyHandler extends Object implements Handler<RoutingContext>
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
|
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 |
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 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 static BodyHandler newInstance(BodyHandler arg)
Copyright © 2015. All Rights Reserved.