Modifier and Type | Method and Description |
---|---|
RouterFactory |
RouterFactory.setBodyHandler(BodyHandler bodyHandler)
Deprecated.
Supply your own BodyHandler if you would like to control body limit, uploads directory and deletion of uploaded files
|
Modifier and Type | Method and Description |
---|---|
static BodyHandler |
BodyHandler.create()
Create a body handler with defaults
|
static BodyHandler |
BodyHandler.create(boolean handleFileUploads)
Create a body handler setting if it should handle file uploads
|
static BodyHandler |
BodyHandler.create(String uploadDirectory)
Create a body handler and use the given upload directory.
|
BodyHandler |
BodyHandler.setBodyLimit(long bodyLimit)
Set the maximum body size in bytes,
-1 means no limit |
BodyHandler |
BodyHandler.setDeleteUploadedFilesOnEnd(boolean deleteUploadedFilesOnEnd)
Set whether uploaded files should be removed after handling the request
|
BodyHandler |
BodyHandler.setHandleFileUploads(boolean handleFileUploads)
Set whether file uploads will be handled
|
BodyHandler |
BodyHandler.setMergeFormAttributes(boolean mergeFormAttributes)
Set whether form attributes will be added to the request parameters
|
BodyHandler |
BodyHandler.setPreallocateBodyBuffer(boolean isPreallocateBodyBuffer)
Pre-allocate the body buffer according to the value parsed from content-length header.
|
BodyHandler |
BodyHandler.setUploadsDirectory(String uploadsDirectory)
Set the uploads directory to use
|
Modifier and Type | Method and Description |
---|---|
default RouterBuilder |
RouterBuilder.bodyHandler(BodyHandler bodyHandler)
Deprecated.
Use
RouterBuilder.rootHandler(Handler) instead. The order matters, so adding the body handler should
happen after any PLATFORM or SECURITY_POLICY handler(s). |
Modifier and Type | Method and Description |
---|---|
BodyHandler |
BodyHandler.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static BodyHandler |
BodyHandler.newInstance(BodyHandler arg) |
Constructor and Description |
---|
BodyHandler(BodyHandler delegate) |
Modifier and Type | Method and Description |
---|---|
BodyHandler |
BodyHandler.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static BodyHandler |
BodyHandler.newInstance(BodyHandler arg) |
Constructor and Description |
---|
BodyHandler(BodyHandler delegate) |
Modifier and Type | Method and Description |
---|---|
BodyHandler |
BodyHandler.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static BodyHandler |
BodyHandler.newInstance(BodyHandler arg) |
Constructor and Description |
---|
BodyHandler(BodyHandler delegate) |
Copyright © 2024 Eclipse. All rights reserved.