Class DisplayServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.jalios.jcms.servlet.JcmsServlet
com.jalios.jcms.servlet.DisplayServlet
All Implemented Interfaces:
JcmsConstants, JaliosConstants, 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
Author:
Olivier Jaquemet
See Also:
  • Field Details

    • DISPLAY_SERVLET_REQUEST

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

    • DisplayServlet

      public DisplayServlet()
  • Method Details

    • 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, IOException
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      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.