Class CmsPdfLink


  • public class CmsPdfLink
    extends java.lang.Object
    This class is responsbile for creating and parsing links to generated PDFs.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CmsPdfLink.CmsPdfLinkParseException
      Exception which is thrown when parsing a link as a PDF link fails.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NOSLASH_GROUP
      Group of characters without slashes.
      static java.lang.String PDF_LINK_PREFIX
      The prefix string for PDF links.
      static java.lang.String PDF_LINK_REGEX
      Regular expression for parsing PDF links.
      static java.util.regex.Pattern PDF_LINK_REGEX_COMPILED
      Compiled regular expression for parsing PDF links.
    • Constructor Summary

      Constructors 
      Constructor Description
      CmsPdfLink​(CmsObject cms, java.lang.String link)
      Creates a PDF link object by parsing it from a link string.
      CmsPdfLink​(CmsObject cms, CmsResource formatter, CmsResource content, java.lang.String filename)
      Creates a new PDF link object based on the formatter and content resources and the locale of the current CMS context.