org.apache.jasper.runtime
Class PageContextImpl
public
class
PageContextImpl
extends PageContext
Implementation of the PageContext class from the JSP spec. Also doubles as a
VariableResolver for the EL.
Author: Anil K. Vijendran Larry Cable Hans Bergsten Pierre Delisle Mark Roth Jan Luehe Jacob Hookom
Method Summary |
Object | findAttribute(String name) |
void | forward(String relativeUrlPath) |
Object | getAttribute(String name) |
Object | getAttribute(String name, int scope) |
Enumeration<String> | getAttributeNamesInScope(int scope) |
int | getAttributesScope(String name) |
ELContext | getELContext() |
Exception | getException()
Returns the exception associated with this page context, if any. |
ExpressionEvaluator | getExpressionEvaluator()
Provides programmatic access to the ExpressionEvaluator. |
JspWriter | getOut() |
Object | getPage() |
ServletRequest | getRequest() |
ServletResponse | getResponse() |
Servlet | getServlet() |
ServletConfig | getServletConfig() |
ServletContext | getServletContext() |
HttpSession | getSession() |
VariableResolver | getVariableResolver() |
void | handlePageException(Exception ex) |
void | handlePageException(Throwable t) |
void | include(String relativeUrlPath) |
void | include(String relativeUrlPath, boolean flush) |
void | initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) |
JspWriter | popBody() |
static Object | proprietaryEvaluate(String expression, Class expectedType, PageContext pageContext, ProtectedFunctionMapper functionMap, boolean escape)
Proprietary method to evaluate EL expressions. |
BodyContent | pushBody() |
JspWriter | pushBody(Writer writer) |
void | release() |
void | removeAttribute(String name, int scope) |
void | removeAttribute(String name) |
void | setAttribute(String name, Object attribute) |
void | setAttribute(String name, Object o, int scope) |
public Object findAttribute(String name)
public void forward(String relativeUrlPath)
public Object getAttribute(String name)
public Object getAttribute(String name, int scope)
public Enumeration<String> getAttributeNamesInScope(int scope)
public int getAttributesScope(String name)
public ELContext getELContext()
public Exception getException()
Returns the exception associated with this page context, if any.
Added wrapping for Throwables to avoid ClassCastException: see Bugzilla
31171 for details.
Returns: The Exception associated with this page context, if any.
public ExpressionEvaluator getExpressionEvaluator()
Provides programmatic access to the ExpressionEvaluator. The JSP
Container must return a valid instance of an ExpressionEvaluator that can
parse EL expressions.
public JspWriter getOut()
public Object getPage()
public ServletRequest getRequest()
public ServletResponse getResponse()
public Servlet getServlet()
public ServletConfig getServletConfig()
public ServletContext getServletContext()
public HttpSession getSession()
public VariableResolver getVariableResolver()
public void handlePageException(Exception ex)
public void handlePageException(Throwable t)
public void include(String relativeUrlPath)
public void include(String relativeUrlPath, boolean flush)
public void initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)
public JspWriter popBody()
public static Object proprietaryEvaluate(String expression, Class expectedType, PageContext pageContext,
ProtectedFunctionMapper functionMap, boolean escape)
Proprietary method to evaluate EL expressions. XXX - This method should
go away once the EL interpreter moves out of JSTL and into its own
project. For now, this is necessary because the standard machinery is too
slow.
Parameters: expression
The expression to be evaluated expectedType
The expected resulting type pageContext
The page context functionMap
Maps prefix and name to Method
Returns: The result of the evaluation
public BodyContent pushBody()
public JspWriter pushBody(Writer writer)
public void release()
public void removeAttribute(String name, int scope)
public void removeAttribute(String name)
public void setAttribute(String name, Object attribute)
public void setAttribute(String name, Object o, int scope)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.