/** * Report action after action invoking when the multipart request coming */ static final void reportMultipartRequest(Controller controller, Action action) { doReport(controller, action); }
/** * Report action before action invoking when the common request coming */ static final boolean reportCommonRequest(Controller controller, Action action) { String content_type = controller.getRequest().getContentType(); if (content_type == null || content_type.toLowerCase().indexOf("multipart") == -1) { // if (content_type == null || content_type.indexOf("multipart/form-data") == -1) { doReport(controller, action); return false; } return true; }