public class PageContextImpl
extends jakarta.servlet.jsp.PageContext
| Modifier and Type | Method and Description |
|---|---|
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) |
jakarta.el.ELContext |
getELContext() |
Exception |
getException()
Returns the exception associated with this page context, if any.
|
jakarta.servlet.jsp.el.ExpressionEvaluator |
getExpressionEvaluator()
Deprecated.
|
jakarta.servlet.jsp.JspWriter |
getOut() |
Object |
getPage() |
jakarta.servlet.ServletRequest |
getRequest() |
jakarta.servlet.ServletResponse |
getResponse() |
jakarta.servlet.ServletConfig |
getServletConfig() |
jakarta.servlet.ServletContext |
getServletContext() |
jakarta.servlet.http.HttpSession |
getSession() |
jakarta.servlet.jsp.el.VariableResolver |
getVariableResolver()
Deprecated.
|
void |
handlePageException(Exception ex) |
void |
handlePageException(Throwable t) |
void |
include(String relativeUrlPath) |
void |
include(String relativeUrlPath,
boolean flush) |
void |
initialize(jakarta.servlet.Servlet servlet,
jakarta.servlet.ServletRequest request,
jakarta.servlet.ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush) |
jakarta.servlet.jsp.JspWriter |
popBody() |
static Object |
proprietaryEvaluate(String expression,
Class<?> expectedType,
jakarta.servlet.jsp.PageContext pageContext,
ProtectedFunctionMapper functionMap)
Proprietary method to evaluate EL expressions.
|
jakarta.servlet.jsp.tagext.BodyContent |
pushBody() |
jakarta.servlet.jsp.JspWriter |
pushBody(Writer writer) |
void |
release() |
void |
removeAttribute(String name) |
void |
removeAttribute(String name,
int scope) |
void |
setAttribute(String name,
Object attribute) |
void |
setAttribute(String name,
Object o,
int scope) |
public void initialize(jakarta.servlet.Servlet servlet,
jakarta.servlet.ServletRequest request,
jakarta.servlet.ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
throws IOException
initialize in class jakarta.servlet.jsp.PageContextIOExceptionpublic void release()
release in class jakarta.servlet.jsp.PageContextpublic Object getAttribute(String name)
getAttribute in class jakarta.servlet.jsp.JspContextpublic Object getAttribute(String name, int scope)
getAttribute in class jakarta.servlet.jsp.JspContextpublic void setAttribute(String name, Object attribute)
setAttribute in class jakarta.servlet.jsp.JspContextpublic void setAttribute(String name, Object o, int scope)
setAttribute in class jakarta.servlet.jsp.JspContextpublic void removeAttribute(String name, int scope)
removeAttribute in class jakarta.servlet.jsp.JspContextpublic int getAttributesScope(String name)
getAttributesScope in class jakarta.servlet.jsp.JspContextpublic Object findAttribute(String name)
findAttribute in class jakarta.servlet.jsp.JspContextpublic Enumeration<String> getAttributeNamesInScope(int scope)
getAttributeNamesInScope in class jakarta.servlet.jsp.JspContextpublic void removeAttribute(String name)
removeAttribute in class jakarta.servlet.jsp.JspContextpublic jakarta.servlet.jsp.JspWriter getOut()
getOut in class jakarta.servlet.jsp.JspContextpublic jakarta.servlet.http.HttpSession getSession()
getSession in class jakarta.servlet.jsp.PageContextpublic jakarta.servlet.ServletConfig getServletConfig()
getServletConfig in class jakarta.servlet.jsp.PageContextpublic jakarta.servlet.ServletContext getServletContext()
getServletContext in class jakarta.servlet.jsp.PageContextpublic jakarta.servlet.ServletRequest getRequest()
getRequest in class jakarta.servlet.jsp.PageContextpublic jakarta.servlet.ServletResponse getResponse()
getResponse in class jakarta.servlet.jsp.PageContextpublic Exception getException()
Added wrapping for Throwables to avoid ClassCastException: see Bugzilla 31171 for details.
getException in class jakarta.servlet.jsp.PageContextpublic Object getPage()
getPage in class jakarta.servlet.jsp.PageContextpublic void include(String relativeUrlPath) throws jakarta.servlet.ServletException, IOException
include in class jakarta.servlet.jsp.PageContextjakarta.servlet.ServletExceptionIOExceptionpublic void include(String relativeUrlPath, boolean flush) throws jakarta.servlet.ServletException, IOException
include in class jakarta.servlet.jsp.PageContextjakarta.servlet.ServletExceptionIOException@Deprecated public jakarta.servlet.jsp.el.VariableResolver getVariableResolver()
getVariableResolver in class jakarta.servlet.jsp.JspContextpublic void forward(String relativeUrlPath) throws jakarta.servlet.ServletException, IOException
forward in class jakarta.servlet.jsp.PageContextjakarta.servlet.ServletExceptionIOExceptionpublic jakarta.servlet.jsp.tagext.BodyContent pushBody()
pushBody in class jakarta.servlet.jsp.PageContextpublic jakarta.servlet.jsp.JspWriter pushBody(Writer writer)
pushBody in class jakarta.servlet.jsp.JspContextpublic jakarta.servlet.jsp.JspWriter popBody()
popBody in class jakarta.servlet.jsp.JspContext@Deprecated public jakarta.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
getExpressionEvaluator in class jakarta.servlet.jsp.JspContextpublic void handlePageException(Exception ex) throws IOException, jakarta.servlet.ServletException
handlePageException in class jakarta.servlet.jsp.PageContextIOExceptionjakarta.servlet.ServletExceptionpublic void handlePageException(Throwable t) throws IOException, jakarta.servlet.ServletException
handlePageException in class jakarta.servlet.jsp.PageContextIOExceptionjakarta.servlet.ServletExceptionpublic static Object proprietaryEvaluate(String expression, Class<?> expectedType, jakarta.servlet.jsp.PageContext pageContext, ProtectedFunctionMapper functionMap) throws jakarta.el.ELException
expression - The expression to be evaluatedexpectedType - The expected resulting typepageContext - The page contextfunctionMap - Maps prefix and name to Methodjakarta.el.ELExceptionpublic jakarta.el.ELContext getELContext()
getELContext in class jakarta.servlet.jsp.JspContextCopyright © 2022 JBoss by Red Hat. All rights reserved.