public class PageContextImpl
extends javax.servlet.jsp.PageContext
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
evaluateExpression(java.lang.String expression,
java.lang.Class expectedType,
javax.servlet.jsp.PageContext pageContext,
ProtectedFunctionMapper functionMap)
Evaluates an EL expression
|
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()
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(java.lang.String expression,
javax.servlet.jsp.PageContext pageContext,
javax.el.FunctionMapper functionMap,
java.lang.Class expectedType,
java.lang.Class[] paramTypes) |
javax.servlet.jsp.JspWriter |
getOut() |
java.lang.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(java.lang.String expression,
javax.servlet.jsp.PageContext pageContext,
java.lang.Class expectedType,
javax.el.FunctionMapper functionMap) |
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) |
void |
setAttribute(java.lang.String name,
java.lang.Object attribute) |
void |
setAttribute(java.lang.String name,
java.lang.Object o,
int scope) |
static void |
setMethodVariable(javax.servlet.jsp.PageContext pageContext,
java.lang.String variable,
javax.el.MethodExpression expression) |
static void |
setValueVariable(javax.servlet.jsp.PageContext pageContext,
java.lang.String variable,
javax.el.ValueExpression expression) |
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
initialize in class javax.servlet.jsp.PageContextjava.io.IOExceptionpublic void release()
release in class javax.servlet.jsp.PageContextpublic 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 attribute)
setAttribute in class javax.servlet.jsp.JspContextpublic void setAttribute(java.lang.String name,
java.lang.Object o,
int scope)
setAttribute 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.lang.Object findAttribute(java.lang.String name)
findAttribute in class javax.servlet.jsp.JspContextpublic java.util.Enumeration<java.lang.String> getAttributeNamesInScope(int scope)
getAttributeNamesInScope in class javax.servlet.jsp.JspContextpublic void removeAttribute(java.lang.String name)
removeAttribute in class javax.servlet.jsp.JspContextpublic javax.servlet.jsp.JspWriter getOut()
getOut in class javax.servlet.jsp.JspContextpublic javax.servlet.http.HttpSession getSession()
getSession in class javax.servlet.jsp.PageContextpublic javax.servlet.Servlet getServlet()
public javax.servlet.ServletConfig getServletConfig()
getServletConfig in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletContext getServletContext()
getServletContext 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 java.lang.Object getPage()
getPage in class javax.servlet.jsp.PageContextpublic 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.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 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 static java.lang.Object evaluateExpression(java.lang.String expression,
java.lang.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.ELExceptionpublic static javax.el.ValueExpression getValueExpression(java.lang.String expression,
javax.servlet.jsp.PageContext pageContext,
java.lang.Class expectedType,
javax.el.FunctionMapper functionMap)
public static javax.el.MethodExpression getMethodExpression(java.lang.String expression,
javax.servlet.jsp.PageContext pageContext,
javax.el.FunctionMapper functionMap,
java.lang.Class expectedType,
java.lang.Class[] paramTypes)
public static void setValueVariable(javax.servlet.jsp.PageContext pageContext,
java.lang.String variable,
javax.el.ValueExpression expression)
public static void setMethodVariable(javax.servlet.jsp.PageContext pageContext,
java.lang.String variable,
javax.el.MethodExpression expression)
Copyright (c) 1999-2012 Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.