Class JavaScriptServlet

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

    public final class JavaScriptServlet
    extends jakarta.servlet.http.HttpServlet
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doGet​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)  
      void doPost​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)  
      static Set<String> getJavascriptUris()
      whitelist the javascript servlet from csrf errors
      static jakarta.servlet.ServletConfig getStaticServletConfig()  
      void init​(jakarta.servlet.ServletConfig theServletConfig)  
      • Methods inherited from class jakarta.servlet.http.HttpServlet

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

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Constructor Detail

      • JavaScriptServlet

        public JavaScriptServlet()
    • Method Detail

      • getStaticServletConfig

        public static jakarta.servlet.ServletConfig getStaticServletConfig()
      • getJavascriptUris

        public static Set<String> getJavascriptUris()
        whitelist the javascript servlet from csrf errors
        Returns:
        the javascriptUris
      • init

        public void init​(jakarta.servlet.ServletConfig theServletConfig)
        Specified by:
        init in interface jakarta.servlet.Servlet
        Overrides:
        init in class jakarta.servlet.GenericServlet
      • doGet

        public void doGet​(jakarta.servlet.http.HttpServletRequest request,
                          jakarta.servlet.http.HttpServletResponse response)
                   throws IOException
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Throws:
        IOException
      • doPost

        public void doPost​(jakarta.servlet.http.HttpServletRequest request,
                           jakarta.servlet.http.HttpServletResponse response)
                    throws IOException
        Overrides:
        doPost in class jakarta.servlet.http.HttpServlet
        Throws:
        IOException