Class StatusServlet

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

    public class StatusServlet
    extends javax.servlet.http.HttpServlet
    Servlet for retrieving Nuxeo services running status.
    Since:
    9.3 this servlet returns a status based of all the probes registered for the healthCheck.
    See Also:
    Serialized Form
    • Constructor Detail

      • StatusServlet

        public StatusServlet()
    • Method Detail

      • doGet

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

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

        protected void sendResponse​(javax.servlet.http.HttpServletResponse resp,
                                    String response)
                             throws IOException
        Throws:
        IOException
      • getSummaryInfo

        protected void getSummaryInfo​(StringBuilder response)
      • getStartedInfo

        protected void getStartedInfo​(StringBuilder response)
      • init

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