use of org.codelibs.fess.mylasta.direction.sponsor.FessMultipartRequestHandler in project fess by codelibs.
the class FessFwAssistantDirector method prepareWebDirection.
// ===================================================================================
// Web
// =====
@Override
protected void prepareWebDirection(final FwWebDirection direction) {
direction.directRequest(createUserLocaleProcessProvider(), createUserTimeZoneProcessProvider());
direction.directCookie(createCookieResourceProvider());
direction.directAdjustment(createActionAdjustmentProvider());
direction.directMessage(createMessageNameList(), "fess_label");
direction.directApiCall(createApiFailureHook());
direction.directMultipart(FessMultipartRequestHandler::new);
direction.directHtmlRendering(new JspHtmlRenderingProvider() {
@Override
protected String getShowErrorsForwardPath(final ActionRuntime runtime) {
if (FessAdminAction.class.isAssignableFrom(runtime.getActionType())) {
return "/admin/error/error.jsp";
}
return "/error/system.jsp";
}
});
}
Aggregations