Class CmsPdfFormatterUtils


  • public final class CmsPdfFormatterUtils
    extends java.lang.Object
    Utility class for PDF formatting.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] executeJsp​(CmsObject cms, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CmsResource jsp, CmsResource content)
      Executes a JSP with a given content as input and returns the output of the JSP.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • executeJsp

        public static byte[] executeJsp​(CmsObject cms,
                                        javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response,
                                        CmsResource jsp,
                                        CmsResource content)
                                 throws java.lang.Exception
        Executes a JSP with a given content as input and returns the output of the JSP.

        Parameters:
        cms - the current CMS context
        request - the current request
        response - the current response
        jsp - the jsp resource to execute
        content - the content to render with the JSP
        Returns:
        the output of the JSP
        Throws:
        java.lang.Exception - if something goes wrong