Package org.opencms.jsp.util
Class CmsFunctionRenderer
java.lang.Object
org.opencms.jsp.util.CmsFunctionRenderer
Class used for rendering dynamic functions (v2).
-
Constructor Summary
ConstructorDescriptionCmsFunctionRenderer
(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
defaultHtml
(javax.servlet.http.HttpServletRequest request) Returns the default output for functions without configured JSPs.static CmsResource
Cached method for accessing the default function formatter.static CmsResource
Cached method for accessing the default function formatter JSP.void
render()
Renders the requested element content with the flex formatter string template.
-
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 contextreq
- the requestres
- the response
-
-
Method Details
-
defaultHtml
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
Renders the requested element content with the flex formatter string template.- Throws:
IOException
- in case writing to to page context out failsjavax.servlet.jsp.JspException
- in case something goes wrong during the JSP include
-