public class JspContextWrapper
extends javax.servlet.jsp.PageContext
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.String> |
aliases |
private java.util.ArrayList<java.lang.String> |
atBeginVars |
private java.util.ArrayList<java.lang.String> |
atEndVars |
private javax.el.ELContext |
elContext |
private javax.servlet.jsp.PageContext |
invokingJspCtxt |
private java.util.ArrayList<java.lang.String> |
nestedVars |
private java.util.HashMap<java.lang.String,java.lang.Object> |
originalNestedVars |
private java.util.Hashtable<java.lang.String,java.lang.Object> |
pageAttributes |
| Constructor and Description |
|---|
JspContextWrapper(javax.servlet.jsp.JspContext jspContext,
java.util.ArrayList<java.lang.String> nestedVars,
java.util.ArrayList<java.lang.String> atBeginVars,
java.util.ArrayList<java.lang.String> atEndVars,
java.util.Map<java.lang.String,java.lang.String> aliases) |
| Modifier and Type | Method and Description |
|---|---|
private void |
copyTagToPageScope(int scope)
Copies the variables of the given scope from the virtual page scope of
this JSP context wrapper to the page scope of the invoking JSP context.
|
private java.lang.String |
findAlias(java.lang.String varName)
Checks to see if the given variable name is used as an alias, and if so,
returns the variable name for which it is used as an alias.
|
java.lang.Object |
findAttribute(java.lang.String name) |
void |
forward(java.lang.String relativeUrlPath) |
java.lang.Object |
getAttribute(java.lang.String name) |
java.lang.Object |
getAttribute(java.lang.String name,
int scope) |
java.util.Enumeration<java.lang.String> |
getAttributeNamesInScope(int scope) |
int |
getAttributesScope(java.lang.String name) |
javax.el.ELContext |
getELContext() |
java.lang.Exception |
getException() |
javax.servlet.jsp.el.ExpressionEvaluator |
getExpressionEvaluator() |
javax.servlet.jsp.JspWriter |
getOut() |
java.lang.Object |
getPage() |
javax.servlet.ServletRequest |
getRequest() |
javax.servlet.ServletResponse |
getResponse() |
static javax.servlet.jsp.PageContext |
getRootPageContext(javax.servlet.jsp.PageContext pc) |
javax.servlet.ServletConfig |
getServletConfig() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSession |
getSession() |
javax.servlet.jsp.el.VariableResolver |
getVariableResolver() |
void |
handlePageException(java.lang.Exception ex) |
void |
handlePageException(java.lang.Throwable t) |
void |
include(java.lang.String relativeUrlPath) |
void |
include(java.lang.String relativeUrlPath,
boolean flush) |
void |
initialize(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
java.lang.String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush) |
javax.servlet.jsp.JspWriter |
popBody() |
javax.servlet.jsp.tagext.BodyContent |
pushBody() |
javax.servlet.jsp.JspWriter |
pushBody(java.io.Writer writer) |
void |
release() |
void |
removeAttribute(java.lang.String name) |
void |
removeAttribute(java.lang.String name,
int scope) |
private void |
restoreNestedVariables()
Restores the values of any NESTED variables in the invoking JSP
context.
|
private void |
saveNestedVariables()
Saves the values of any NESTED variables that are present in
the invoking JSP context, so they can later be restored.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
void |
setAttribute(java.lang.String name,
java.lang.Object value,
int scope) |
void |
syncBeforeInvoke()
Synchronize variables before fragment invokation
|
void |
syncBeginTagFile()
Synchronize variables at begin of tag file
|
void |
syncEndTagFile()
Synchronize variables at end of tag file
|
private javax.servlet.jsp.PageContext invokingJspCtxt
private java.util.Hashtable<java.lang.String,java.lang.Object> pageAttributes
private java.util.ArrayList<java.lang.String> nestedVars
private java.util.ArrayList<java.lang.String> atBeginVars
private java.util.ArrayList<java.lang.String> atEndVars
private java.util.Map<java.lang.String,java.lang.String> aliases
private java.util.HashMap<java.lang.String,java.lang.Object> originalNestedVars
private javax.el.ELContext elContext
public JspContextWrapper(javax.servlet.jsp.JspContext jspContext,
java.util.ArrayList<java.lang.String> nestedVars,
java.util.ArrayList<java.lang.String> atBeginVars,
java.util.ArrayList<java.lang.String> atEndVars,
java.util.Map<java.lang.String,java.lang.String> aliases)
public void initialize(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
java.lang.String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
throws java.io.IOException,
java.lang.IllegalStateException,
java.lang.IllegalArgumentException
initialize in class javax.servlet.jsp.PageContextjava.io.IOExceptionjava.lang.IllegalStateExceptionjava.lang.IllegalArgumentExceptionpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in class javax.servlet.jsp.JspContextpublic java.lang.Object getAttribute(java.lang.String name,
int scope)
getAttribute in class javax.servlet.jsp.JspContextpublic void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in class javax.servlet.jsp.JspContextpublic void setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
setAttribute in class javax.servlet.jsp.JspContextpublic java.lang.Object findAttribute(java.lang.String name)
findAttribute in class javax.servlet.jsp.JspContextpublic void removeAttribute(java.lang.String name)
removeAttribute in class javax.servlet.jsp.JspContextpublic void removeAttribute(java.lang.String name,
int scope)
removeAttribute in class javax.servlet.jsp.JspContextpublic int getAttributesScope(java.lang.String name)
getAttributesScope in class javax.servlet.jsp.JspContextpublic java.util.Enumeration<java.lang.String> getAttributeNamesInScope(int scope)
getAttributeNamesInScope in class javax.servlet.jsp.JspContextpublic void release()
release in class javax.servlet.jsp.PageContextpublic javax.servlet.jsp.JspWriter getOut()
getOut in class javax.servlet.jsp.JspContextpublic javax.servlet.http.HttpSession getSession()
getSession in class javax.servlet.jsp.PageContextpublic java.lang.Object getPage()
getPage in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletRequest getRequest()
getRequest in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletResponse getResponse()
getResponse in class javax.servlet.jsp.PageContextpublic java.lang.Exception getException()
getException in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletConfig getServletConfig()
getServletConfig in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletContext getServletContext()
getServletContext in class javax.servlet.jsp.PageContextpublic static javax.servlet.jsp.PageContext getRootPageContext(javax.servlet.jsp.PageContext pc)
public javax.el.ELContext getELContext()
getELContext in class javax.servlet.jsp.JspContextpublic void forward(java.lang.String relativeUrlPath)
throws javax.servlet.ServletException,
java.io.IOException
forward in class javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionjava.io.IOExceptionpublic void include(java.lang.String relativeUrlPath)
throws javax.servlet.ServletException,
java.io.IOException
include in class javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionjava.io.IOExceptionpublic void include(java.lang.String relativeUrlPath,
boolean flush)
throws javax.servlet.ServletException,
java.io.IOException
include in class javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionjava.io.IOExceptionpublic javax.servlet.jsp.el.VariableResolver getVariableResolver()
getVariableResolver in class javax.servlet.jsp.JspContextpublic javax.servlet.jsp.tagext.BodyContent pushBody()
pushBody in class javax.servlet.jsp.PageContextpublic javax.servlet.jsp.JspWriter pushBody(java.io.Writer writer)
pushBody in class javax.servlet.jsp.JspContextpublic javax.servlet.jsp.JspWriter popBody()
popBody in class javax.servlet.jsp.JspContextpublic javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
getExpressionEvaluator in class javax.servlet.jsp.JspContextpublic void handlePageException(java.lang.Exception ex)
throws java.io.IOException,
javax.servlet.ServletException
handlePageException in class javax.servlet.jsp.PageContextjava.io.IOExceptionjavax.servlet.ServletExceptionpublic void handlePageException(java.lang.Throwable t)
throws java.io.IOException,
javax.servlet.ServletException
handlePageException in class javax.servlet.jsp.PageContextjava.io.IOExceptionjavax.servlet.ServletExceptionpublic void syncBeginTagFile()
public void syncBeforeInvoke()
public void syncEndTagFile()
private void copyTagToPageScope(int scope)
scope - variable scope (one of NESTED, AT_BEGIN, or AT_END)private void saveNestedVariables()
private void restoreNestedVariables()
private java.lang.String findAlias(java.lang.String varName)
varName - The variable name to check