Class CleverServlet

    • Field Detail

      • CURRENT_REQUEST

        public static ThreadLocal<javax.servlet.http.HttpServletRequest> CURRENT_REQUEST
      • CURRENT_RESPONSE

        public static ThreadLocal<javax.servlet.http.HttpServletResponse> CURRENT_RESPONSE
    • Constructor Detail

      • CleverServlet

        public CleverServlet()
    • Method Detail

      • getServletName

        public String getServletName()
        Specified by:
        getServletName in interface javax.servlet.ServletConfig
        Overrides:
        getServletName in class javax.servlet.GenericServlet
      • service

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

        public void setHolder​(org.eclipse.jetty.servlet.ServletHolder holder)
      • setMultipartConfig

        public void setMultipartConfig​(javax.servlet.MultipartConfigElement config)
      • writeJSONError

        protected void writeJSONError​(String message,
                                      javax.servlet.ServletOutputStream output)
                               throws IOException
        Throws:
        IOException
      • readPartsAsObjects

        protected Map<String,​Object> readPartsAsObjects​(javax.servlet.http.HttpServletRequest req)
                                                       throws javax.servlet.ServletException,
                                                              IOException
        Throws:
        javax.servlet.ServletException
        IOException
      • readPartsAsBytes

        protected Map<String,​byte[]> readPartsAsBytes​(javax.servlet.http.HttpServletRequest req)
                                                     throws javax.servlet.ServletException,
                                                            IOException
        Throws:
        javax.servlet.ServletException
        IOException