public abstract class PageContext extends JspContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION |
static int |
APPLICATION_SCOPE |
static java.lang.String |
CONFIG |
static java.lang.String |
EXCEPTION |
static java.lang.String |
OUT |
static java.lang.String |
PAGE |
static int |
PAGE_SCOPE |
static java.lang.String |
PAGECONTEXT |
static java.lang.String |
REQUEST |
static int |
REQUEST_SCOPE |
static java.lang.String |
RESPONSE |
static java.lang.String |
SESSION |
static int |
SESSION_SCOPE |
Constructor and Description |
---|
PageContext() |
Modifier and Type | Method and Description |
---|---|
abstract void |
forward(java.lang.String relativeUrl)
Forwards the request relative to the current URL.
|
abstract java.lang.Object |
getAttribute(java.lang.String name)
Gets the named page attribute.
|
ErrorData |
getErrorData()
Returns an error data instance.
|
abstract java.lang.Exception |
getException()
Returns the exception for error pages.
|
abstract JspWriter |
getOut()
Returns the current output for the page.
|
abstract java.lang.Object |
getPage()
Return the servlet object for the page.
|
abstract ServletRequest |
getRequest()
Returns the ServletRequest for the page.
|
abstract ServletResponse |
getResponse()
Returns the ServletResponse for the page.
|
abstract ServletConfig |
getServletConfig()
Returns the servletConfig for the JSP page.
|
abstract ServletContext |
getServletContext()
Returns the servletContext (application object) for the request.
|
abstract HttpSession |
getSession()
Returns the request's session.
|
abstract void |
handlePageException(java.lang.Exception e)
Internal routine to support errorPages.
|
abstract void |
handlePageException(java.lang.Throwable t)
Internal routine to support errorPages
|
abstract void |
include(java.lang.String relativeUrl)
Includes the a page relative to the current URL.
|
abstract void |
include(java.lang.String relativeUrl,
boolean flush)
Includes the a page relative to the current URL.
|
abstract void |
initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
java.lang.String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
Internal routine to initialize the PageContext for a page.
|
BodyContent |
pushBody()
Internal routine to support BodyTags.
|
abstract void |
release()
Internal routine to free PageContext resources at the end of a page.
|
abstract void |
removeAttribute(java.lang.String name)
Removes the named page attribute.
|
abstract void |
setAttribute(java.lang.String name,
java.lang.Object attribute)
Sets the named page attribute.
|
findAttribute, getAttribute, getAttributeNamesInScope, getAttributesScope, getELContext, getExpressionEvaluator, getVariableResolver, popBody, pushBody, removeAttribute, setAttribute
public static final int PAGE_SCOPE
public static final int REQUEST_SCOPE
public static final int SESSION_SCOPE
public static final int APPLICATION_SCOPE
public static final java.lang.String PAGE
public static final java.lang.String PAGECONTEXT
public static final java.lang.String REQUEST
public static final java.lang.String RESPONSE
public static final java.lang.String CONFIG
public static final java.lang.String SESSION
public static final java.lang.String OUT
public static final java.lang.String APPLICATION
public static final java.lang.String EXCEPTION
public abstract java.lang.Object getAttribute(java.lang.String name)
getAttribute
in class JspContext
name
- of the attributepublic abstract void setAttribute(java.lang.String name, java.lang.Object attribute)
setAttribute
in class JspContext
name
- name of the attributeattribute
- non-null attribute value.public abstract void removeAttribute(java.lang.String name)
removeAttribute
in class JspContext
public abstract JspWriter getOut()
getOut
in class JspContext
public abstract HttpSession getSession()
public abstract java.lang.Object getPage()
public abstract ServletRequest getRequest()
public abstract ServletResponse getResponse()
public abstract java.lang.Exception getException()
public abstract ServletConfig getServletConfig()
public abstract ServletContext getServletContext()
public abstract void forward(java.lang.String relativeUrl) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public abstract void include(java.lang.String relativeUrl) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public abstract void include(java.lang.String relativeUrl, boolean flush) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public abstract void initialize(Servlet servlet, ServletRequest request, ServletResponse response, java.lang.String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) throws java.io.IOException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
java.io.IOException
java.lang.IllegalStateException
java.lang.IllegalArgumentException
public BodyContent pushBody()
public abstract void handlePageException(java.lang.Exception e) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public abstract void handlePageException(java.lang.Throwable t) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public abstract void release()
public ErrorData getErrorData()