public LogStatus() { super(); this.logServlet = new ViewStatusMessagesServlet(); try { logServlet.init(); } catch (Exception e) { log.warn("Could not intiailize log status servlet.", e); logServlet = null; } }
@Override public String handleRequest( final HttpServletRequest request, final HttpServletResponse response) { if (logServlet == null) { sendError(response, 500, ViewStatusMessagesServlet.class.getName() + " unavailable"); return null; } try { logServlet.service(request, response); } catch (Exception e) { log.error("Failed to show log status information.", e); } return null; }