public class MultiPartConfig
extends java.lang.Object
jersey-multipart as used in this particular
application.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUFFER_THRESHOLD_NAME
Name of the resource property for the
bufferThreshold
property. |
static java.lang.String |
MULTI_PART_CONFIG_RESOURCE
Name of a properties resource that (if found in the classpath
for this application) will be used to configure the settings returned
by our getter methods.
|
| Constructor and Description |
|---|
MultiPartConfig()
Load and customize (if necessary) the configuration values for the
jersey-multipart module. |
| Modifier and Type | Method and Description |
|---|---|
int |
getBufferThreshold()
Return the size (in bytes) of the entity of an incoming
BodyPart before it will be buffered to disk. |
public static final java.lang.String MULTI_PART_CONFIG_RESOURCE
Name of a properties resource that (if found in the classpath for this application) will be used to configure the settings returned by our getter methods.
public static final java.lang.String BUFFER_THRESHOLD_NAME
Name of the resource property for the bufferThreshold
property.
public MultiPartConfig()
jersey-multipart module.java.lang.IllegalArgumentException - if the configuration resource exists, but there are problems reading it.public int getBufferThreshold()
BodyPart before it will be buffered to disk.
The default value is 4096.Copyright © 2016 Oracle Corporation. All Rights Reserved.