public class MultipartConfigElement
extends java.lang.Object
MultipartConfig annotation value.| Constructor | Description |
|---|---|
MultipartConfigElement(java.lang.String location) |
Constructs an instance with defaults for all but location.
|
MultipartConfigElement(java.lang.String location,
long maxFileSize,
long maxRequestSize,
int fileSizeThreshold) |
Constructs an instance with all values specified.
|
MultipartConfigElement(MultipartConfig annotation) |
Constructs an instance from a
MultipartConfig annotation value. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getFileSizeThreshold() |
Gets the size threshold after which files will be written to disk.
|
java.lang.String |
getLocation() |
Gets the directory location where files will be stored.
|
long |
getMaxFileSize() |
Gets the maximum size allowed for uploaded files.
|
long |
getMaxRequestSize() |
Gets the maximum size allowed for multipart/form-data requests.
|
public MultipartConfigElement(java.lang.String location)
location - defualts to "" if values is null.public MultipartConfigElement(java.lang.String location,
long maxFileSize,
long maxRequestSize,
int fileSizeThreshold)
location - the directory location where files will be storedmaxFileSize - the maximum size allowed for uploaded filesmaxRequestSize - the maximum size allowed for
multipart/form-data requestsfileSizeThreshold - the size threshold after which files will
be written to diskpublic MultipartConfigElement(MultipartConfig annotation)
MultipartConfig annotation value.annotation - the annotation valuepublic java.lang.String getLocation()
public long getMaxFileSize()
public long getMaxRequestSize()
public int getFileSizeThreshold()
Copyright © 1999-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms. Portions Copyright © 1999-2002 The Apache Software Foundation.