org.apache.jasper.runtime
Class PageContextImpl
java.lang.Object
|
+--javax.servlet.jsp.PageContext
|
+--org.apache.jasper.runtime.PageContextImpl
- public class PageContextImpl
- extends PageContext
Implementation of the PageContext class from the JSP spec.
Fields inherited from class javax.servlet.jsp.PageContext |
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE |
Method Summary |
protected JspWriter |
_createOut(int bufferSize,
boolean autoFlush)
|
Object |
findAttribute(String name)
|
void |
forward(String relativeUrlPath)
|
Object |
getAttribute(String name)
|
Object |
getAttribute(String name,
int scope)
|
Enumeration |
getAttributeNamesInScope(int scope)
|
int |
getAttributesScope(String name)
|
Exception |
getException()
|
JspWriter |
getOut()
|
Object |
getPage()
|
ServletRequest |
getRequest()
|
ServletResponse |
getResponse()
|
Servlet |
getServlet()
|
ServletConfig |
getServletConfig()
|
ServletContext |
getServletContext()
|
HttpSession |
getSession()
|
void |
handlePageException(Exception e)
|
void |
include(String relativeUrlPath)
|
void |
initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
|
JspWriter |
popBody()
|
BodyContent |
pushBody()
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servlet
protected Servlet servlet
config
protected ServletConfig config
context
protected ServletContext context
factory
protected JspFactory factory
needsSession
protected boolean needsSession
errorPageURL
protected String errorPageURL
autoFlush
protected boolean autoFlush
bufferSize
protected int bufferSize
attributes
protected transient Hashtable attributes
request
protected transient ServletRequest request
response
protected transient ServletResponse response
page
protected transient Object page
session
protected transient HttpSession session
out
protected transient JspWriter out
initialize
public void initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
throws IOException,
IllegalStateException,
IllegalArgumentException
- Overrides:
initialize
in class PageContext
release
public void release()
- Overrides:
release
in class PageContext
getAttribute
public Object getAttribute(String name)
- Overrides:
getAttribute
in class PageContext
getAttribute
public Object getAttribute(String name,
int scope)
- Overrides:
getAttribute
in class PageContext
setAttribute
public void setAttribute(String name,
Object attribute)
- Overrides:
setAttribute
in class PageContext
setAttribute
public void setAttribute(String name,
Object o,
int scope)
- Overrides:
setAttribute
in class PageContext
removeAttribute
public void removeAttribute(String name,
int scope)
- Overrides:
removeAttribute
in class PageContext
getAttributesScope
public int getAttributesScope(String name)
- Overrides:
getAttributesScope
in class PageContext
findAttribute
public Object findAttribute(String name)
- Overrides:
findAttribute
in class PageContext
getAttributeNamesInScope
public Enumeration getAttributeNamesInScope(int scope)
- Overrides:
getAttributeNamesInScope
in class PageContext
removeAttribute
public void removeAttribute(String name)
- Overrides:
removeAttribute
in class PageContext
getOut
public JspWriter getOut()
- Overrides:
getOut
in class PageContext
getSession
public HttpSession getSession()
- Overrides:
getSession
in class PageContext
getServlet
public Servlet getServlet()
getServletConfig
public ServletConfig getServletConfig()
- Overrides:
getServletConfig
in class PageContext
getServletContext
public ServletContext getServletContext()
- Overrides:
getServletContext
in class PageContext
getRequest
public ServletRequest getRequest()
- Overrides:
getRequest
in class PageContext
getResponse
public ServletResponse getResponse()
- Overrides:
getResponse
in class PageContext
getException
public Exception getException()
- Overrides:
getException
in class PageContext
getPage
public Object getPage()
- Overrides:
getPage
in class PageContext
include
public void include(String relativeUrlPath)
throws ServletException,
IOException
- Overrides:
include
in class PageContext
forward
public void forward(String relativeUrlPath)
throws ServletException,
IOException
- Overrides:
forward
in class PageContext
pushBody
public BodyContent pushBody()
- Overrides:
pushBody
in class PageContext
popBody
public JspWriter popBody()
- Overrides:
popBody
in class PageContext
handlePageException
public void handlePageException(Exception e)
throws IOException,
ServletException
- Overrides:
handlePageException
in class PageContext
_createOut
protected JspWriter _createOut(int bufferSize,
boolean autoFlush)
throws IOException,
IllegalArgumentException
Written 2001 by Mike Slinn. All rights reserved.
4230 Wooster Ave, San Mateo, CA 94403.
Tel: 650-571-8436 www.mslinn.com