Package org.cipango.console.printer.generic

Examples of org.cipango.console.printer.generic.HtmlPrinter


        if (index != -1)
          property.setName(name.substring(0, index));
      }
      add(new PropertiesPrinter(propertyList));
     
      add(new HtmlPrinter()
      {
       
        public void print(Writer out) throws Exception
        {
          Boolean on = (Boolean) _mbsc.getAttribute(objectName, "statsOn");
View Full Code Here


      if (MenuPrinter.STATISTICS_DIAMETER.isEnabled(connection))
        addPrinter(new DiameterStatisticsPrinter(connection), "Diameter statistics");
     
      addPrinter(new HttpStatisticsPrinter(connection), "HTTP statistics");
     
      add(new HtmlPrinter()
      {
        public void print(Writer out) throws Exception
        {
          appendTitle(out, "Server");
          out.append((String) connection.invoke(ConsoleFilter.SERVER, "dump", null, new String[0]));
        }
      });
     
      add(new HtmlPrinter()
      {
        @SuppressWarnings("unchecked")
        public void print(Writer out) throws Exception
        {
          appendTitle(out, "System properties");
View Full Code Here

    }
  }
 
  public HtmlPrinter getSubMenu()
  {
    return new HtmlPrinter()
    {
     
      public void print(Writer out) throws Exception
      {
        out.write("<div id=\"submenu\">\n<ul>");
View Full Code Here

    }
    catch (Throwable e)
    {
      _logger.warn("Unable to process request: {}", request.getRequestURL().toString(), e);
      _logger.debug("Unable to process request: " +  request.getRequestURL().toString(), e);
      HtmlPrinter printer = new ErrorPrinter(e.toString());
      response.setStatus(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
      request.setAttribute(Attributes.CONTENT, printer);
    }
    finally
    {
View Full Code Here

TOP

Related Classes of org.cipango.console.printer.generic.HtmlPrinter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.