Class CmsPdfResourceHandler

  • All Implemented Interfaces:
    I_CmsResourceInit

    public class CmsPdfResourceHandler
    extends java.lang.Object
    implements I_CmsResourceInit
    This resource handler handles URLs of the form /pdflink/{locale}/{formatter-id}/{detailname} and format the content identified by detailname using the JSP identified by formatter-id to generate XHTML which is then converted to PDF and returned directly by this handler.

    In Online mode, the generated PDFs are cached on the real file system, while in Offline mode, the PDF data is always generated on-the-fly.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String IMAGE_MIMETYPECONFIG
      Mime type data for different file extensions.
      static java.util.Map<java.lang.String,​java.lang.String> IMAGE_MIMETYPES
      Map of mime types for different file extensions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void handlePdfLink​(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String uri)
      Handles a link for generating a PDF.
      CmsResource initResource​(CmsResource resource, CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Possibility to modify or change the CmsFile with the CmsObject.
      protected void logXhtmlOutput​(CmsResource formatter, CmsResource content, byte[] xhtmlData)
      Logs the XHTML output.
      • Methods inherited from class java.lang.Object

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