Class CmsFunctionRenderer


  • public class CmsFunctionRenderer
    extends java.lang.Object
    Class used for rendering dynamic functions (v2).

    • Constructor Summary

      Constructors 
      Constructor Description
      CmsFunctionRenderer​(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
      Constructor.
    • Constructor Detail

      • CmsFunctionRenderer

        public CmsFunctionRenderer​(javax.servlet.jsp.PageContext context,
                                   javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse res)
        Constructor.

        Parameters:
        context - the page context
        req - the request
        res - the response
    • Method Detail

      • defaultHtml

        public static java.lang.String defaultHtml​(javax.servlet.http.HttpServletRequest request)
        Returns the default output for functions without configured JSPs.
        Parameters:
        request - the current request
        Returns:
        the default HTML output
      • getDefaultFunctionInstance

        public static CmsResource getDefaultFunctionInstance​(CmsObject cms)
        Cached method for accessing the default function formatter.

        Parameters:
        cms - the current CMS context
        Returns:
        the default function formatter resource
      • getDefaultFunctionJsp

        public static CmsResource getDefaultFunctionJsp​(CmsObject cms)
        Cached method for accessing the default function formatter JSP.

        Parameters:
        cms - the current CMS context
        Returns:
        the default function formatter JSP
      • render

        public void render()
                    throws java.io.IOException,
                           javax.servlet.jsp.JspException
        Renders the requested element content with the flex formatter string template.

        Throws:
        java.io.IOException - in case writing to to page context out fails
        javax.servlet.jsp.JspException - in case something goes wrong during the JSP include