code: protected void processRequest(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
          response.setContentType("text/html;charset=UTF-8");
          if (!request.getServletPath().endsWith("insecure")) {
              response.addHeader("Content-Security-Policy", buildCSPHeader());
          }
          request.getRequestDispatcher("WEB-INF/chatq.jspx").forward(request, response);
      }
docs: Processes requests for both HTTP <code>GET</code> and <code>POST</code>
  methods.
  
  @param request servlet request
  @param response servlet response
  @throws ServletException if a servlet-specific error occurs
  @throws IOException if an I/O error occurs