protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String path = Https.getThisPathInfo(request);
final boolean bRichlet = path != null && path.length() > 0;
if (!bRichlet)
path = Https.getThisServletPath(request);
final Session sess = WebManager.getSession(getServletContext(), request);
if (!SessionsCtrl.requestEnter(sess)) {
response.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE, Messages.get(MZk.TOO_MANY_REQUESTS));
return;
}
try {
final Object old = I18Ns.setup(sess, request, response,
sess.getWebApp().getConfiguration().getResponseCharset());
try {
if (!process(sess, request, response, path, bRichlet))
handleError(sess, request, response, path, null);
} catch (Throwable ex) {
handleError(sess, request, response, path, ex);
} finally {
I18Ns.cleanup(request, old);
}
} finally {
SessionsCtrl.requestExit(sess);
}
}