public RequestContext( HttpServletRequest req, HttpServletResponse res, ServletContext servletContext, ServletFileUpload fileUploader) { this.req = req; this.res = res; this.servletContext = servletContext; this.fileUploader = fileUploader; init(); }
/** * 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(); }