Package reactor.netty.http.server
Interface HttpServerFormDecoderProvider.Builder
- Enclosing class:
- HttpServerFormDecoderProvider
public static interface HttpServerFormDecoderProvider.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbaseDirectory(Path baseDirectory) Sets the directory where to store diskAttribute/FileUpload.maxInMemorySize(long maxInMemorySize) Sets the maximum in-memory size perAttribute/FileUploadi.e.maxSize(long maxSize) Set the maximum size perAttribute/FileUpload.Sets the scheduler to be used for offloading disk operations in the decoding phase.streaming(boolean enable) When set totrue, the data is streamed directly from the parsed input buffer stream, which means it is not stored either in memory or file.
-
Method Details
-
baseDirectory
Sets the directory where to store diskAttribute/FileUpload. Default to generated temp directory.- Parameters:
baseDirectory- directory where to store diskAttribute/FileUpload- Returns:
this
-
charset
- Parameters:
charset- the charset forAttribute/FileUpload- Returns:
this
-
maxInMemorySize
Sets the maximum in-memory size perAttribute/FileUploadi.e. the data is written on disk if the size is greater thanmaxInMemorySize, else it is in memory. Default toDefaultHttpDataFactory.MINSIZE.Note:
- If set to
-1the entire contents is stored in memory - If set to
0the entire contents is stored on disk
- Parameters:
maxInMemorySize- the maximum in-memory size- Returns:
this
- If set to
-
maxSize
Set the maximum size perAttribute/FileUpload. When the limit is reached, an exception is raised. Default toDefaultHttpDataFactory.MAXSIZE- unlimited.Note: If set to
-1this means no limitation.- Parameters:
maxSize- the maximum size allowed for an individual attribute/fileUpload- Returns:
this
-
scheduler
Sets the scheduler to be used for offloading disk operations in the decoding phase. Default toSchedulers.boundedElastic()- Parameters:
scheduler- the scheduler to be used for offloading disk operations in the decoding phase- Returns:
this
-
streaming
When set totrue, the data is streamed directly from the parsed input buffer stream, which means it is not stored either in memory or file. Whenfalse, parts are backed by in-memory and/or file storage. Default tofalse.NOTE that with streaming enabled, the provided
Attribute/FileUploadmight not be in a complete state i.e.HttpData.isCompleted()has to be checked.Also note that enabling this property effectively ignores
maxInMemorySize(long),baseDirectory(Path), andscheduler(Scheduler).
-