Beispiel #1
0
 public static MultipartRequest getParsedInstance(HttpServletRequest request) throws IOException {
   MultipartRequest mreq = getInstance(request, null, null);
   if (mreq.isLoaded() == false) {
     mreq.parseRequest();
   }
   return mreq;
 }
Beispiel #2
0
 /** Returns parsed instance of MultipartRequest. */
 public static MultipartRequest getParsedInstance(
     HttpServletRequest request, FileUploadFactory fileUploadFactory, String encoding)
     throws IOException {
   MultipartRequest mreq = getInstance(request, fileUploadFactory, encoding);
   if (mreq.isLoaded() == false) {
     mreq.parseRequest();
   }
   return mreq;
 }