Class StatisticsServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class StatisticsServlet
    extends javax.servlet.http.HttpServlet
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doGet​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      void doPost​(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sres)  
      void init()  
      private boolean isLoopbackAddress​(java.lang.String address)  
      private void sendTextResponse​(javax.servlet.http.HttpServletResponse response)  
      private void sendXmlResponse​(javax.servlet.http.HttpServletResponse response)  
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final Logger LOG
      • _restrictToLocalhost

        boolean _restrictToLocalhost
      • _memoryBean

        private java.lang.management.MemoryMXBean _memoryBean
      • _connectors

        private Connector[] _connectors
    • Constructor Detail

      • StatisticsServlet

        public StatisticsServlet()
    • Method Detail

      • init

        public void init()
                  throws javax.servlet.ServletException
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest sreq,
                           javax.servlet.http.HttpServletResponse sres)
                    throws javax.servlet.ServletException,
                           java.io.IOException
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse resp)
                      throws javax.servlet.ServletException,
                             java.io.IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • isLoopbackAddress

        private boolean isLoopbackAddress​(java.lang.String address)
      • sendXmlResponse

        private void sendXmlResponse​(javax.servlet.http.HttpServletResponse response)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • sendTextResponse

        private void sendTextResponse​(javax.servlet.http.HttpServletResponse response)
                               throws java.io.IOException
        Throws:
        java.io.IOException