Beispiel #1
0
 public RequestContext(
     HttpServletRequest req,
     HttpServletResponse res,
     ServletContext servletContext,
     ServletFileUpload fileUploader) {
   this.req = req;
   this.res = res;
   this.servletContext = servletContext;
   this.fileUploader = fileUploader;
   init();
 }
Beispiel #2
0
 /**
  * Shortcut way to create a RequestContext object, usually for testing purpose.
  *
  * @param part
  * @param paramMap
  */
 public RequestContext(Part part, Map<String, Object> paramMap) {
   setCurrentPart(part);
   this.paramMap = paramMap;
   isParamInitialized = true;
   init();
 }