Class JavaScriptServlet

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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      void doPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      static Set<String> getJavascriptUris()
      whitelist the javascript servlet from csrf errors
      static javax.servlet.ServletConfig getStaticServletConfig()  
      void init​(javax.servlet.ServletConfig theServletConfig)  
      • 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
    • Constructor Detail

      • JavaScriptServlet

        public JavaScriptServlet()
    • Method Detail

      • getStaticServletConfig

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

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

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

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

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