Class CmsPermalinkResourceHandler

  • All Implemented Interfaces:
    I_CmsResourceInit

    public class CmsPermalinkResourceHandler
    extends java.lang.Object
    implements I_CmsResourceInit
    Resource init handler that loads a resource given its permalink.

    The permalink must have following format:
    /${CONTEXT}/${SERVLET}/permalink/${UUID}.${EXT}

    for example:
    /opencms/opencms/permalink/a7b5d298-b3ab-11d8-b3e3-514d35713fed.html

    Since:
    6.3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CAPTURE_UUID_REGEX
      Regex for capturing a UUID.
      static java.lang.String PERMALINK_HANDLER
      The permalink handler path.
      static java.lang.String SUFFIX_REGEX
      Regex for the optional file extension.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

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