예제 #1
0
 public LogStatus() {
   super();
   this.logServlet = new ViewStatusMessagesServlet();
   try {
     logServlet.init();
   } catch (Exception e) {
     log.warn("Could not intiailize log status servlet.", e);
     logServlet = null;
   }
 }
예제 #2
0
  @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;
  }