/** * Manages requests to internal OpenCms request handlers.<p> * * @param req the current request * @param res the current response * @throws ServletException in case an error occurs * @throws ServletException in case an error occurs * @throws IOException in case an error occurs */ protected void invokeHandler(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { String name = OpenCmsCore.getInstance().getPathInfo(req).substring(HANDLE_PATH.length()); I_CmsRequestHandler handler = OpenCmsCore.getInstance().getRequestHandler(name); if (handler != null) { handler.handle(req, res, name); } else { openErrorHandler(req, res, HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } }
/** * Manages requests to internal OpenCms request handlers.<p> * * @param req the current request * @param res the current response * @throws ServletException in case an error occurs * @throws ServletException in case an error occurs * @throws IOException in case an error occurs */ protected void invokeHandler(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { String name = OpenCmsCore.getInstance().getPathInfo(req).substring(HANDLE_PATH.length()); I_CmsRequestHandler handler = OpenCmsCore.getInstance().getRequestHandler(name); if ((handler == null) && name.contains("/")) { // if the name contains a '/', also check for handlers matching the first path fragment only name = name.substring(0, name.indexOf("/")); handler = OpenCmsCore.getInstance().getRequestHandler(name); } if (handler != null) { handler.handle(req, res, name); } else { openErrorHandler(req, res, HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } }
LOG.warn(Messages.get().getBundle().key(Messages.LOG_ERROR_EXPORT_1, exportData), t); openErrorHandler(req, res, errorCode); openErrorHandler(req, res, errorCode); openErrorHandler(req, res, errorCode);
LOG.warn(Messages.get().getBundle().key(Messages.LOG_ERROR_EXPORT_1, exportData), t); openErrorHandler(req, res, errorCode); openErrorHandler(req, res, errorCode); openErrorHandler(req, res, errorCode);