|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.util.http.MultipartUtil
public final class MultipartUtil
MultipartUtil
Method Summary | |
---|---|
static MultipartHttpServletRequest |
convert(int nSizeThreshold,
long nRequestSizeMax,
boolean bActivateNormalizeFileName,
javax.servlet.http.HttpServletRequest request)
Convert a HTTP request to a MultipartHttpServletRequest |
static boolean |
isMultipart(javax.servlet.http.HttpServletRequest request)
Check if the given HTTP request has multipart content |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isMultipart(javax.servlet.http.HttpServletRequest request)
request
- the HTTP request
public static MultipartHttpServletRequest convert(int nSizeThreshold, long nRequestSizeMax, boolean bActivateNormalizeFileName, javax.servlet.http.HttpServletRequest request) throws org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException, org.apache.commons.fileupload.FileUploadException
MultipartHttpServletRequest
nSizeThreshold
- the size thresholdnRequestSizeMax
- the request size maxbActivateNormalizeFileName
- true if the file name must be normalized, false otherwiserequest
- the HTTP request
MultipartHttpServletRequest
, null if the request does not have a multipart content
org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
- exception if the file size is too big
org.apache.commons.fileupload.FileUploadException
- exception if an unknown error has occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |