Class ContentPageServlet

  • All Implemented Interfaces:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, net.anotheria.moskito.core.producers.IStatsProducer

    public class ContentPageServlet
    extends BaseAnoSiteServlet
    This servlet builds and delivers pages (out of pagexs objects) and is therefore one of the main classes in the ano-site framework.
    Author:
    lrosenberg
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String BEAN_ANOSITE_VERBOSITY
      If set more output will be produced by jsps.
      static Charset MY_FS_CHARSET
      Charset for files on filesystem.
      static String OVERRIDE_PAGE_TITLE
      Parameter which allows to override the title stored in the page object.
      • Fields inherited from class jakarta.servlet.http.HttpServlet

        LEGACY_DO_HEAD
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(jakarta.servlet.ServletConfig config)  
      protected void moskitoDoGet​(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)  
      protected void moskitoDoPost​(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)  
      protected void processRequest​(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, boolean submit)
      Processes the incoming request.
      • Methods inherited from class net.anotheria.moskito.web.MoskitoHttpServlet

        doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getCategory, getLastModified, getMonitoringIntervals, getStats, getSubsystem, moskitoDoDelete, moskitoDoHead, moskitoDoOptions, moskitoDoPut, moskitoDoTrace, moskitoGetLastModified, useShortStatList
      • Methods inherited from class jakarta.servlet.http.HttpServlet

        service, service
      • Methods inherited from class jakarta.servlet.GenericServlet

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

      • OVERRIDE_PAGE_TITLE

        public static final String OVERRIDE_PAGE_TITLE
        Parameter which allows to override the title stored in the page object.
        See Also:
        Constant Field Values
      • BEAN_ANOSITE_VERBOSITY

        public static final String BEAN_ANOSITE_VERBOSITY
        If set more output will be produced by jsps. Useful in development, but should be removed in production environment. Configured via configureme.
        See Also:
        Constant Field Values
      • MY_FS_CHARSET

        public static final Charset MY_FS_CHARSET
        Charset for files on filesystem.
    • Constructor Detail

      • ContentPageServlet

        public ContentPageServlet()
    • Method Detail

      • init

        public void init​(jakarta.servlet.ServletConfig config)
                  throws jakarta.servlet.ServletException
        Specified by:
        init in interface jakarta.servlet.Servlet
        Overrides:
        init in class net.anotheria.moskito.web.MoskitoHttpServlet
        Throws:
        jakarta.servlet.ServletException
      • moskitoDoGet

        protected void moskitoDoGet​(jakarta.servlet.http.HttpServletRequest req,
                                    jakarta.servlet.http.HttpServletResponse res)
                             throws jakarta.servlet.ServletException,
                                    IOException
        Overrides:
        moskitoDoGet in class net.anotheria.moskito.web.MoskitoHttpServlet
        Throws:
        jakarta.servlet.ServletException
        IOException
      • moskitoDoPost

        protected void moskitoDoPost​(jakarta.servlet.http.HttpServletRequest req,
                                     jakarta.servlet.http.HttpServletResponse res)
                              throws jakarta.servlet.ServletException,
                                     IOException
        Overrides:
        moskitoDoPost in class net.anotheria.moskito.web.MoskitoHttpServlet
        Throws:
        jakarta.servlet.ServletException
        IOException
      • processRequest

        protected void processRequest​(jakarta.servlet.http.HttpServletRequest req,
                                      jakarta.servlet.http.HttpServletResponse res,
                                      boolean submit)
                               throws jakarta.servlet.ServletException,
                                      IOException,
                                      net.anotheria.asg.exception.ASGRuntimeException,
                                      BoxHandleException,
                                      WizardHandlerException
        Processes the incoming request.
        Parameters:
        req - HttpServletRequest
        res - HttpServletResponse
        submit - true if the request was submitted via post (for calling submit in handlers)
        Throws:
        jakarta.servlet.ServletException - on errors
        IOException - on input output errors
        net.anotheria.asg.exception.ASGRuntimeException - on backend failures
        BoxHandleException - on box handle errors
        WizardHandlerException - on wizard handle errors