Class CmsHistoryResourceHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ATTRIBUTE_NAME
      Constant for the historical version request attribute name.
      static java.lang.String HISTORY_HANDLER
      The historical version handler path.
      static java.lang.String PARAM_VERSION
      Request parameter name for the version number.
      static int PROJECT_OFFLINE_VERSION
      Constant for the offline project version.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static I_CmsHistoryResource getHistoryResource​(javax.servlet.ServletRequest req)
      Returns the historical version of a resource, if the given request is displaying a history version.
      static java.lang.String getHistoryResourceURI​(java.lang.String uri, javax.servlet.ServletRequest req)
      Appends the version parameter to the URI if needed.
      static CmsResource getResourceWithHistory​(CmsObject cms, java.lang.String resourceUri)
      Returns the correct resource for the given URI, taken into account historical versions marked by the version parameter.
      CmsResource initResource​(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
      Possibility to modify or change the CmsFile with the CmsObject.
      static boolean isHistoryRequest​(javax.servlet.ServletRequest req)
      Returns true if the given request is displaying an historical version.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait