Package org.opencms.jsp.util
Class CmsFunctionRenderer
- java.lang.Object
-
- org.opencms.jsp.util.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
defaultHtml(javax.servlet.http.HttpServletRequest request)
Returns the default output for functions without configured JSPs.static CmsResource
getDefaultFunctionInstance(CmsObject cms)
Cached method for accessing the default function formatter.static CmsResource
getDefaultFunctionJsp(CmsObject cms)
Cached method for accessing the default function formatter JSP.void
render()
Renders the requested element content with the flex formatter string template.
-
-
-
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 contextreq
- the requestres
- 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 failsjavax.servlet.jsp.JspException
- in case something goes wrong during the JSP include
-
-