|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.transport.http.multipart.MultipartConfiguration
public class MultipartConfiguration
Defines configuration object used to control how attachments are processed. This is an adaptation of the javax.servlet.MultipartConfigElement class introduced into the Servlet 3.0 specification. The API has been kept that same but the package and class name has changed not to conflict with the Servlet spec.
Constructor Summary | |
---|---|
MultipartConfiguration(String location)
Constructs an instance with defaults for all but location. |
|
MultipartConfiguration(String location,
long maxFileSize,
long maxRequestSize,
int fileSizeThreshold)
Constructs an instance with all values specified. |
Method Summary | |
---|---|
int |
getFileSizeThreshold()
Gets the size threshold after which files will be written to disk. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipartConfiguration(String location)
location
- defualts to "" if values is null.public MultipartConfiguration(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 diskMethod Detail |
---|
public String getLocation()
public long getMaxFileSize()
public long getMaxRequestSize()
public int getFileSizeThreshold()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |