|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.PageContext
Field Summary | |
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 Summary | |
PageContext()
|
Method Summary | |
abstract java.lang.Object |
findAttribute(java.lang.String name)
Finds an attribute in all scopes. |
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. |
abstract java.lang.Object |
getAttribute(java.lang.String name,
int scope)
Gets an attribute in a given scope. |
abstract java.util.Enumeration |
getAttributeNames()
Return an enumeration of all the attribute names. |
abstract java.util.Enumeration |
getAttributeNamesInScope(int scope)
Lists attribute names in a given scope. |
abstract int |
getAttributesScope(java.lang.String name)
Returns the scope for an attribute. |
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 |
include(java.lang.String relativeUrl)
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. |
JspWriter |
popBody()
Internal routine to support BodyTags. |
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 |
removeAttribute(java.lang.String name,
int scope)
Removes an attribute in a given scope. |
abstract void |
setAttribute(java.lang.String name,
java.lang.Object attribute)
Sets the named page attribute. |
abstract void |
setAttribute(java.lang.String name,
java.lang.Object o,
int scope)
Sets an attribute in a given scope. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
Constructor Detail |
public PageContext()
Method Detail |
public abstract java.lang.Object getAttribute(java.lang.String name)
name
- of the attributepublic abstract void setAttribute(java.lang.String name, java.lang.Object attribute)
name
- name of the attributeattribute
- non-null attribute value.public abstract void removeAttribute(java.lang.String name)
public abstract java.util.Enumeration getAttributeNames()
public abstract JspWriter getOut()
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
public abstract void include(java.lang.String relativeUrl) throws 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
public abstract void setAttribute(java.lang.String name, java.lang.Object o, int scope)
name
- attribute nameo
- attribute valuescope
- attribute scopepublic abstract java.lang.Object getAttribute(java.lang.String name, int scope)
name
- attribute namescope
- attribute scopepublic abstract void removeAttribute(java.lang.String name, int scope)
public abstract java.util.Enumeration getAttributeNamesInScope(int scope)
public abstract int getAttributesScope(java.lang.String name)
public abstract java.lang.Object findAttribute(java.lang.String name)
public BodyContent pushBody()
public JspWriter popBody()
public abstract void handlePageException(java.lang.Exception e) throws ServletException, java.io.IOException
public abstract void release()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |