public class PageContextImpl
extends javax.servlet.jsp.PageContext
Modifier and Type | Method and Description |
---|---|
static Object |
evaluateExpression(String expression,
Class expectedType,
javax.servlet.jsp.PageContext pageContext,
ProtectedFunctionMapper functionMap)
Evaluates an EL expression
|
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) |
javax.el.ELContext |
getELContext() |
Exception |
getException()
Returns the exception associated with this page context, if any.
|
javax.servlet.jsp.el.ExpressionEvaluator |
getExpressionEvaluator()
Provides programmatic access to the ExpressionEvaluator.
|
static javax.el.MethodExpression |
getMethodExpression(String expression,
javax.servlet.jsp.PageContext pageContext,
javax.el.FunctionMapper functionMap,
Class expectedType,
Class[] paramTypes) |
javax.servlet.jsp.JspWriter |
getOut() |
Object |
getPage() |
javax.servlet.ServletRequest |
getRequest() |
javax.servlet.ServletResponse |
getResponse() |
javax.servlet.Servlet |
getServlet() |
javax.servlet.ServletConfig |
getServletConfig() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSession |
getSession() |
static javax.el.ValueExpression |
getValueExpression(String expression,
javax.servlet.jsp.PageContext pageContext,
Class expectedType,
javax.el.FunctionMapper functionMap) |
javax.servlet.jsp.el.VariableResolver |
getVariableResolver() |
void |
handlePageException(Exception ex) |
void |
handlePageException(Throwable t) |
void |
include(String relativeUrlPath) |
void |
include(String relativeUrlPath,
boolean flush) |
void |
initialize(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush) |
javax.servlet.jsp.JspWriter |
popBody() |
javax.servlet.jsp.tagext.BodyContent |
pushBody() |
javax.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) |
static void |
setMethodVariable(javax.servlet.jsp.PageContext pageContext,
String variable,
javax.el.MethodExpression expression) |
static void |
setValueVariable(javax.servlet.jsp.PageContext pageContext,
String variable,
javax.el.ValueExpression expression) |
public static Object evaluateExpression(String expression, Class expectedType, javax.servlet.jsp.PageContext pageContext, ProtectedFunctionMapper functionMap) throws javax.el.ELException
expression
- The expression to be evaluatedexpectedType
- The expected resulting typepageContext
- The page contextfunctionMap
- Maps prefix and name to Methodjavax.el.ELException
public static javax.el.ValueExpression getValueExpression(String expression, javax.servlet.jsp.PageContext pageContext, Class expectedType, javax.el.FunctionMapper functionMap)
public static javax.el.MethodExpression getMethodExpression(String expression, javax.servlet.jsp.PageContext pageContext, javax.el.FunctionMapper functionMap, Class expectedType, Class[] paramTypes)
public static void setValueVariable(javax.servlet.jsp.PageContext pageContext, String variable, javax.el.ValueExpression expression)
public static void setMethodVariable(javax.servlet.jsp.PageContext pageContext, String variable, javax.el.MethodExpression expression)
public void initialize(javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) throws IOException
initialize
in class javax.servlet.jsp.PageContext
IOException
public void release()
release
in class javax.servlet.jsp.PageContext
public Object getAttribute(String name)
getAttribute
in class javax.servlet.jsp.JspContext
public Object getAttribute(String name, int scope)
getAttribute
in class javax.servlet.jsp.JspContext
public void setAttribute(String name, Object attribute)
setAttribute
in class javax.servlet.jsp.JspContext
public void setAttribute(String name, Object o, int scope)
setAttribute
in class javax.servlet.jsp.JspContext
public void removeAttribute(String name, int scope)
removeAttribute
in class javax.servlet.jsp.JspContext
public int getAttributesScope(String name)
getAttributesScope
in class javax.servlet.jsp.JspContext
public Object findAttribute(String name)
findAttribute
in class javax.servlet.jsp.JspContext
public Enumeration<String> getAttributeNamesInScope(int scope)
getAttributeNamesInScope
in class javax.servlet.jsp.JspContext
public void removeAttribute(String name)
removeAttribute
in class javax.servlet.jsp.JspContext
public javax.servlet.jsp.JspWriter getOut()
getOut
in class javax.servlet.jsp.JspContext
public javax.servlet.http.HttpSession getSession()
getSession
in class javax.servlet.jsp.PageContext
public javax.servlet.Servlet getServlet()
public javax.servlet.ServletConfig getServletConfig()
getServletConfig
in class javax.servlet.jsp.PageContext
public javax.servlet.ServletContext getServletContext()
getServletContext
in class javax.servlet.jsp.PageContext
public javax.servlet.ServletRequest getRequest()
getRequest
in class javax.servlet.jsp.PageContext
public javax.servlet.ServletResponse getResponse()
getResponse
in class javax.servlet.jsp.PageContext
public Exception getException()
Added wrapping for Throwables to avoid ClassCastException (see Bugzilla 31171 for details).
getException
in class javax.servlet.jsp.PageContext
public Object getPage()
getPage
in class javax.servlet.jsp.PageContext
public void include(String relativeUrlPath) throws javax.servlet.ServletException, IOException
include
in class javax.servlet.jsp.PageContext
javax.servlet.ServletException
IOException
public void include(String relativeUrlPath, boolean flush) throws javax.servlet.ServletException, IOException
include
in class javax.servlet.jsp.PageContext
javax.servlet.ServletException
IOException
public javax.servlet.jsp.el.VariableResolver getVariableResolver()
getVariableResolver
in class javax.servlet.jsp.JspContext
public javax.el.ELContext getELContext()
getELContext
in class javax.servlet.jsp.JspContext
public void forward(String relativeUrlPath) throws javax.servlet.ServletException, IOException
forward
in class javax.servlet.jsp.PageContext
javax.servlet.ServletException
IOException
public javax.servlet.jsp.tagext.BodyContent pushBody()
pushBody
in class javax.servlet.jsp.PageContext
public javax.servlet.jsp.JspWriter pushBody(Writer writer)
pushBody
in class javax.servlet.jsp.JspContext
public javax.servlet.jsp.JspWriter popBody()
popBody
in class javax.servlet.jsp.JspContext
public javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
getExpressionEvaluator
in class javax.servlet.jsp.JspContext
public void handlePageException(Exception ex) throws IOException, javax.servlet.ServletException
handlePageException
in class javax.servlet.jsp.PageContext
IOException
javax.servlet.ServletException
public void handlePageException(Throwable t) throws IOException, javax.servlet.ServletException
handlePageException
in class javax.servlet.jsp.PageContext
IOException
javax.servlet.ServletException
Copyright © 2006–2018 TinyGroup. All rights reserved.