public abstract class PageContext extends JspContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION
Key for the servlet context in the name table.
|
static int |
APPLICATION_SCOPE
Denotes application scope.
|
static java.lang.String |
CONFIG
Key for the ServletConfig in the name table.
|
static java.lang.String |
EXCEPTION
Key for an uncaught exception in the name table.
|
static java.lang.String |
OUT
Key for the current JspWriter in the name table.
|
static java.lang.String |
PAGE
Key for the servlet in the name table.
|
static int |
PAGE_SCOPE
Denotes page scope.
|
static java.lang.String |
PAGECONTEXT
Key for the page context itself in the name table.
|
static java.lang.String |
REQUEST
Key for the servlet request in the name table.
|
static int |
REQUEST_SCOPE
Denotes request scope.
|
static java.lang.String |
RESPONSE
Key for the servlet response in the name table.
|
static java.lang.String |
SESSION
Key for the HttpSession in the name table.
|
static int |
SESSION_SCOPE
Denotes session scope.
|
Constructor and Description |
---|
PageContext() |
Modifier and Type | Method and Description |
---|---|
abstract void |
forward(java.lang.String relativeUrlPath)
Forwards the current request/response pair to another servlet for
all further processing.
|
ErrorData |
getErrorData()
Returns error data from the request attributes.
|
abstract java.lang.Exception |
getException()
Returns the current unhandled exception.
|
abstract java.lang.Object |
getPage()
Returns the current page (a servlet).
|
abstract ServletRequest |
getRequest()
Returns the current servlet request object
|
abstract ServletResponse |
getResponse()
Returns the current servlet response object
|
abstract ServletConfig |
getServletConfig()
Returns the ServletConfig associated with the page.
|
abstract ServletContext |
getServletContext()
Returns the servlet context.
|
abstract HttpSession |
getSession()
Returns the current session object.
|
abstract void |
handlePageException(java.lang.Exception e)
Handle an exception created by the page.
|
abstract void |
handlePageException(java.lang.Throwable t)
Handle an exception created by the page.
|
abstract void |
include(java.lang.String urlPath)
Process the request/response pair using another resource.
|
abstract void |
include(java.lang.String urlPath,
boolean flush)
Process the request/response pair using another resource.
|
abstract void |
initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
java.lang.String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
Initialize the JSP page context.
|
BodyContent |
pushBody()
Calls
JspContext.pushBody(java.io.Writer) with the current
value of out , and returns a new BodyContent. |
abstract void |
release()
Release this page context.
|
findAttribute, getAttribute, getAttribute, getAttributeNamesInScope, getAttributesScope, getELContext, getExpressionEvaluator, getOut, getVariableResolver, popBody, pushBody, removeAttribute, removeAttribute, setAttribute, 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 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 abstract void release()
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 relativeUrlPath) throws java.io.IOException, ServletException
relativeUrlPath
- the URL path to the target resource relative
to this pagejava.io.IOException
ServletException
public abstract void include(java.lang.String urlPath) throws java.io.IOException, ServletException
relativeUrlPath
- the URL path to the target resource relative
to this pagejava.io.IOException
ServletException
public abstract void include(java.lang.String urlPath, boolean flush) throws java.io.IOException, ServletException
flush
is true, the current out
for this
page is flushed prior to include processing.relativeUrlPath
- the URL path to the target resource relative
to this pagejava.io.IOException
ServletException
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 BodyContent pushBody()
JspContext.pushBody(java.io.Writer)
with the current
value of out
, and returns a new BodyContent.public ErrorData getErrorData()