org.apache.jasper.runtime
Class JspFragmentHelper
java.lang.Object
|
+--org.apache.jasper.runtime.JspFragmentHelper
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.JspFragment
- public abstract class JspFragmentHelper
- extends java.lang.Object
- implements javax.servlet.jsp.tagext.JspFragment
Helper class from which all Jsp Fragment helper classes extend.
This class allows for the emulation of numerous fragments within
a single class, which in turn reduces the load on the class loader
since there are potentially many JspFragments in a single page.
The class also provides various utility methods for JspFragment
implementations.
- Author:
- Mark Roth
Constructor Summary |
JspFragmentHelper(int discriminator,
javax.servlet.jsp.JspContext jspContext,
javax.servlet.jsp.tagext.JspTag parentTag)
|
Method Summary |
javax.servlet.jsp.JspContext |
getJspContext()
|
javax.servlet.jsp.tagext.JspTag |
getParentTag()
|
protected java.util.Map |
preparePageScope(java.util.Map params)
Takes a snapshot of the current JspContext and stores
the results in a Map for later restoration. |
protected void |
restorePageScope(java.util.Map originalValues)
Restores the state of the page scope in the current page context,
from the given map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.JspFragment |
invoke |
discriminator
protected int discriminator
jspContext
protected javax.servlet.jsp.JspContext jspContext
pageContext
protected javax.servlet.jsp.PageContext pageContext
parentTag
protected javax.servlet.jsp.tagext.JspTag parentTag
JspFragmentHelper
public JspFragmentHelper(int discriminator,
javax.servlet.jsp.JspContext jspContext,
javax.servlet.jsp.tagext.JspTag parentTag)
getJspContext
public javax.servlet.jsp.JspContext getJspContext()
getParentTag
public javax.servlet.jsp.tagext.JspTag getParentTag()
preparePageScope
protected java.util.Map preparePageScope(java.util.Map params)
- Takes a snapshot of the current JspContext and stores
the results in a Map for later restoration. Also sets the
new values in the page context, given the provided parameters.
- Parameters:
params
- the parameters to set in the page scope
- Returns:
- A map that contains a snapshot of the old page scope.
restorePageScope
protected void restorePageScope(java.util.Map originalValues)
- Restores the state of the page scope in the current page context,
from the given map.
- Parameters:
originalValues
- the values to restore in the page context.
Copyright © 2000 Apache Software Foundation. All Rights Reserved.