Class DisplayServlet

  • All Implemented Interfaces:
    JcmsConstants, JaliosConstants, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class DisplayServlet
    extends JcmsServlet
    implements JcmsConstants
    This Servlet handles all display requests done using DescriptiveURLs. It retrieve the id to display from the path info and forward the request to display.jsp.
    Since:
    jcms-5.7.0
    Version:
    $Revision: 129340 $
    Author:
    Olivier Jaquemet
    See Also:
    Serialized Form
    • Field Detail

      • DISPLAY_SERVLET_REQUEST

        public static final java.lang.String DISPLAY_SERVLET_REQUEST
        Request attribute name used to inform that the request has been treated by a DisplayServlet.
    • Constructor Detail

      • DisplayServlet

        public DisplayServlet()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class JcmsServlet
        Throws:
        javax.servlet.ServletException
      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws javax.servlet.ServletException,
                             java.io.IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • isDisplayServletRequest

        public static boolean isDisplayServletRequest​(javax.servlet.http.HttpServletRequest request)
        Checks if the specified request has been treated by a DisplayServlet.
        Parameters:
        request - the request to check
        Returns:
        true if the request has been treated by a DisplayServlet, false otherwise.