Package io.undertow.server.handlers.form
Class MultiPartParserDefinition
- java.lang.Object
-
- io.undertow.server.handlers.form.MultiPartParserDefinition
-
- All Implemented Interfaces:
FormParserFactory.ParserDefinition<MultiPartParserDefinition>
public class MultiPartParserDefinition extends java.lang.Object implements FormParserFactory.ParserDefinition<MultiPartParserDefinition>
- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiPartParserDefinition.FileTooLargeException
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MULTIPART_FORM_DATA
-
Constructor Summary
Constructors Constructor Description MultiPartParserDefinition()
MultiPartParserDefinition(java.nio.file.Path tempDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormDataParser
create(HttpServerExchange exchange)
java.lang.String
getDefaultEncoding()
java.util.concurrent.Executor
getExecutor()
long
getMaxIndividualFileSize()
java.nio.file.Path
getTempFileLocation()
MultiPartParserDefinition
setDefaultEncoding(java.lang.String defaultEncoding)
MultiPartParserDefinition
setExecutor(java.util.concurrent.Executor executor)
MultiPartParserDefinition
setFieldSizeThreshold(long fieldSizeThreshold)
void
setFileSizeThreshold(long fileSizeThreshold)
void
setMaxIndividualFileSize(long maxIndividualFileSize)
MultiPartParserDefinition
setTempFileLocation(java.nio.file.Path tempFileLocation)
-
-
-
Field Detail
-
MULTIPART_FORM_DATA
public static final java.lang.String MULTIPART_FORM_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public FormDataParser create(HttpServerExchange exchange)
- Specified by:
create
in interfaceFormParserFactory.ParserDefinition<MultiPartParserDefinition>
-
getExecutor
public java.util.concurrent.Executor getExecutor()
-
setExecutor
public MultiPartParserDefinition setExecutor(java.util.concurrent.Executor executor)
-
setFieldSizeThreshold
public MultiPartParserDefinition setFieldSizeThreshold(long fieldSizeThreshold)
-
getTempFileLocation
public java.nio.file.Path getTempFileLocation()
-
setTempFileLocation
public MultiPartParserDefinition setTempFileLocation(java.nio.file.Path tempFileLocation)
-
getDefaultEncoding
public java.lang.String getDefaultEncoding()
-
setDefaultEncoding
public MultiPartParserDefinition setDefaultEncoding(java.lang.String defaultEncoding)
- Specified by:
setDefaultEncoding
in interfaceFormParserFactory.ParserDefinition<MultiPartParserDefinition>
-
getMaxIndividualFileSize
public long getMaxIndividualFileSize()
-
setMaxIndividualFileSize
public void setMaxIndividualFileSize(long maxIndividualFileSize)
-
setFileSizeThreshold
public void setFileSizeThreshold(long fileSizeThreshold)
-
-