Java Doc for PageContextImpl.java in  » J2EE » Sofia » com » salmonllc » jsp » engine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Sofia » com.salmonllc.jsp.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.jsp.PageContext
   com.salmonllc.jsp.engine.PageContextImpl

PageContextImpl
public class PageContextImpl extends PageContext implements Serializable(Code)
This class implements a J2EE Page Context Object.


Field Summary
protected transient  Hashtable_attributes
    
protected  boolean_autoFlush
    
protected  int_bufferSize
    
protected  ServletConfig_config
    
protected  ServletContext_context
    
protected  String_errorPageURL
    
protected  boolean_needsSession
    
protected transient  JspWriter_out
    
protected transient  Object_page
    
protected transient  ServletRequest_request
    
protected transient  ServletResponse_response
    
protected  Servlet_servlet
    
protected transient  HttpSession_session
    
 Stack_writerStack
    


Method Summary
public  voidclearWriterStack()
    
protected  JspWritercreateOut(int bufferSize, boolean autoFlush)
    
public  ObjectfindAttribute(String name)
     Searches for the named attribute in page, request, session (if valid), and application scope(s) in order and returns the value associated or null.
public  voidforward(String relativeUrlPath)
    
public  ObjectgetAttribute(String name)
    
public  ObjectgetAttribute(String name, int scope)
    
public  EnumerationgetAttributeNamesInScope(int scope)
    
public  intgetAttributesScope(String name)
    
public  ExceptiongetException()
    
public  JspWritergetOut()
    
public  ObjectgetPage()
    
public  ServletRequestgetRequest()
    
public  ServletResponsegetResponse()
    
public  ServletgetServlet()
    
public  ServletConfiggetServletConfig()
    
public  ServletContextgetServletContext()
    
public  HttpSessiongetSession()
    
public  StackgetStack()
     returns the stack of writers used by the page.
public  voidhandlePageException(Exception e)
     This method is intended to process an unhandled "page" level exception by redirecting the exception to either the specified error page for this JSP, or if none was specified, to perform some implementation dependent action.
public  voidhandlePageException(Throwable throwable)
    
public  voidinclude(String relativeUrlPath)
     Causes the resource specified to be processed as part of the current ServletRequest and ServletResponse being processed by the calling Thread.
public  voidinitialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)
     The initialize emthod is called to initialize an uninitialized PageContext so that it may be used by a JSP Implementation class to service an incoming request and response wihtin it's _jspService() method.

This method is typically called from JspFactory.getPageContext() in order to initialize state.

This method is required to create an initial JspWriter, and associate the "out" name in page scope with this newly created object.
public  JspWriterpopBody()
    
public  BodyContentpushBody()
    
public  voidrelease()
     This method shall "reset" the internal state of a PageContext, releasing all internal references, and preparing the PageContext for potential reuse by a later invocation of initialize().
public  voidremoveAttribute(String name)
    
public  voidremoveAttribute(String name, int scope)
    
public  voidreplaceResponse(ServletResponse res)
    
public  voidsetAttribute(String name, Object attribute)
    
public  voidsetAttribute(String name, Object o, int scope)
    
public  voidsetPrintContent(boolean print)
    

Field Detail
_attributes
protected transient Hashtable _attributes(Code)



_autoFlush
protected boolean _autoFlush(Code)



_bufferSize
protected int _bufferSize(Code)



_config
protected ServletConfig _config(Code)



_context
protected ServletContext _context(Code)



_errorPageURL
protected String _errorPageURL(Code)



_needsSession
protected boolean _needsSession(Code)



_out
protected transient JspWriter _out(Code)



_page
protected transient Object _page(Code)



_request
protected transient ServletRequest _request(Code)



_response
protected transient ServletResponse _response(Code)



_servlet
protected Servlet _servlet(Code)



_session
protected transient HttpSession _session(Code)



_writerStack
Stack _writerStack(Code)





Method Detail
clearWriterStack
public void clearWriterStack() throws IOException(Code)
Empties the stack of JSPWriters used by this page context



createOut
protected JspWriter createOut(int bufferSize, boolean autoFlush) throws IOException, IllegalArgumentException(Code)



findAttribute
public Object findAttribute(String name)(Code)
Searches for the named attribute in page, request, session (if valid), and application scope(s) in order and returns the value associated or null.



forward
public void forward(String relativeUrlPath) throws ServletException, IOException(Code)
This method is used to re-direct, or "forward" the current ServletRequest and ServletResponse to another active component in the application



getAttribute
public Object getAttribute(String name)(Code)
return the object associated with the name in the page scope or null



getAttribute
public Object getAttribute(String name, int scope)(Code)
return the object associated with the name in the page scope or null



getAttributeNamesInScope
public Enumeration getAttributeNamesInScope(int scope)(Code)
Returns an enumeration of all the attributes in a specified scope



getAttributesScope
public int getAttributesScope(String name)(Code)
Returns the scope of the object associated with the name specified or 0



getException
public Exception getException()(Code)
Returns any exception passed to this as an errorpage



getOut
public JspWriter getOut()(Code)
Returns the current JspWriter stream being used for client response



getPage
public Object getPage()(Code)
Returns the Page implementation class instance (Servlet) associated with this PageContext



getRequest
public ServletRequest getRequest()(Code)
Returns the ServletRequest for this PageContext



getResponse
public ServletResponse getResponse()(Code)
Returns the ServletResponse for this PageContext



getServlet
public Servlet getServlet()(Code)
Returns the Servlet for this PageContext



getServletConfig
public ServletConfig getServletConfig()(Code)
Returns the ServletConfig for this PageContext



getServletContext
public ServletContext getServletContext()(Code)
Returns the ServletContext for this PageContext



getSession
public HttpSession getSession()(Code)
Returns the current user session



getStack
public Stack getStack()(Code)
returns the stack of writers used by the page.



handlePageException
public void handlePageException(Exception e) throws IOException, ServletException(Code)
This method is intended to process an unhandled "page" level exception by redirecting the exception to either the specified error page for this JSP, or if none was specified, to perform some implementation dependent action.



handlePageException
public void handlePageException(Throwable throwable) throws ServletException, IOException(Code)
This method is intended to process an unhandled "page" level exception by redirecting the exception to either the specified error page for this JSP, or if none was specified, to perform some implementation dependent action



include
public void include(String relativeUrlPath) throws ServletException, IOException(Code)
Causes the resource specified to be processed as part of the current ServletRequest and ServletResponse being processed by the calling Thread.



initialize
public void initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) throws IOException, IllegalStateException, IllegalArgumentException(Code)
The initialize emthod is called to initialize an uninitialized PageContext so that it may be used by a JSP Implementation class to service an incoming request and response wihtin it's _jspService() method.

This method is typically called from JspFactory.getPageContext() in order to initialize state.

This method is required to create an initial JspWriter, and associate the "out" name in page scope with this newly created object.



popBody
public JspWriter popBody()(Code)
Return the previous JspWriter "out" saved by the matching pushBody(), and update the value of the "out" attribute in the page scope attribute namespace of the PageConxtext



pushBody
public BodyContent pushBody()(Code)
Return a new BodyContent object, save the current "out" JspWriter, and update the value of the "out" attribute in the page scope attribute namespace of the PageContext



release
public void release()(Code)
This method shall "reset" the internal state of a PageContext, releasing all internal references, and preparing the PageContext for potential reuse by a later invocation of initialize().



removeAttribute
public void removeAttribute(String name)(Code)
remove the object reference associated with the specified name



removeAttribute
public void removeAttribute(String name, int scope)(Code)
remove the object reference associated with the specified name



replaceResponse
public void replaceResponse(ServletResponse res)(Code)
Changes the servlet response for the context



setAttribute
public void setAttribute(String name, Object attribute)(Code)
register the name and object specified with appropriate scope semantics



setAttribute
public void setAttribute(String name, Object o, int scope)(Code)
register the name and object specified with appropriate scope semantics



setPrintContent
public void setPrintContent(boolean print)(Code)
Set whether the Impl will return a real BodyContent or a stub



Fields inherited from javax.servlet.jsp.PageContext
final public static String APPLICATION(Code)(Java Doc)
final public static int APPLICATION_SCOPE(Code)(Java Doc)
final public static String CONFIG(Code)(Java Doc)
final public static String EXCEPTION(Code)(Java Doc)
final public static String OUT(Code)(Java Doc)
final public static String PAGE(Code)(Java Doc)
final public static String PAGECONTEXT(Code)(Java Doc)
final public static int PAGE_SCOPE(Code)(Java Doc)
final public static String REQUEST(Code)(Java Doc)
final public static int REQUEST_SCOPE(Code)(Java Doc)
final public static String RESPONSE(Code)(Java Doc)
final public static String SESSION(Code)(Java Doc)
final public static int SESSION_SCOPE(Code)(Java Doc)

Methods inherited from javax.servlet.jsp.PageContext
abstract public void forward(String relativeUrlPath) throws ServletException, IOException(Code)(Java Doc)
public ErrorData getErrorData()(Code)(Java Doc)
abstract public Exception getException()(Code)(Java Doc)
abstract public Object getPage()(Code)(Java Doc)
abstract public ServletRequest getRequest()(Code)(Java Doc)
abstract public ServletResponse getResponse()(Code)(Java Doc)
abstract public ServletConfig getServletConfig()(Code)(Java Doc)
abstract public ServletContext getServletContext()(Code)(Java Doc)
abstract public HttpSession getSession()(Code)(Java Doc)
abstract public void handlePageException(Exception e) throws ServletException, IOException(Code)(Java Doc)
abstract public void handlePageException(Throwable t) throws ServletException, IOException(Code)(Java Doc)
abstract public void include(String relativeUrlPath) throws ServletException, IOException(Code)(Java Doc)
abstract public void include(String relativeUrlPath, boolean flush) throws ServletException, IOException(Code)(Java Doc)
abstract public void initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) throws IOException, IllegalStateException, IllegalArgumentException(Code)(Java Doc)
public BodyContent pushBody()(Code)(Java Doc)
abstract public void release()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.