Class CmsFunctionRenderer

java.lang.Object
org.opencms.jsp.util.CmsFunctionRenderer

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

  • Constructor Details

    • 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 Details

    • defaultHtml

      public static 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

      Cached method for accessing the default function formatter.

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

      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 IOException, javax.servlet.jsp.JspException
      Renders the requested element content with the flex formatter string template.

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