Java Doc for PageContextImpl.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » jsp » 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 » EJB Server resin 3.1.5 » resin » com.caucho.jsp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.servlet.jsp.JspContext
      javax.servlet.jsp.PageContext
         com.caucho.jsp.PageContextImpl

All known Subclasses:   com.caucho.jsp.PageContextWrapper,
PageContextImpl
public class PageContextImpl extends PageContext implements ExprEnv,JstlPageContext,VariableResolver(Code)

Inner Class :public class PageVarEnv extends VarEnv
Inner Class :static class StringArrayEnum implements Enumeration
Inner Class :public class PageELContext extends ServletELContext
Inner Class :public class PageFunctionMapper extends javax.el.FunctionMapper
Inner Class :public class PageVariableMapper extends ImplicitVariableMapper

Field Summary
final static  L10NL
    
protected  boolean_isFilled
    

Constructor Summary
 PageContextImpl()
    
public  PageContextImpl(WebApp webApp, Servlet servlet)
    
public  PageContextImpl(WebApp webApp, HashMap<String, Method> functionMap)
    

Method Summary
public  voidapplicationSetOrRemove(String var, Object value)
     Set/Remove an webApp attribute.
protected  voidclearAttributes()
    
public  ValueExpressioncreateExpr(ValueExpression expr, String exprString, Class type)
     Creates an expression.
public  voiddefaultSetOrRemove(String var, Object value)
     Set/Remove a page attribute.
protected  voidfillAttribute()
     Fills the predefined page content _attributes with their values.
public  ObjectfindAttribute(String name)
     Finds an attribute in any of the scopes from page to webApp.
Parameters:
  name - the attribute name.
public  voidforward(String relativeUrl, String query)
     Include another servlet into the current output stream.
public  voidforward(String relativeUrl)
     Forward a subrequest relative to the current url.
public  WebAppgetApplication()
     Returns the page's webApp.
public  ObjectgetAttribute(String name)
     Returns the page attribute with the given name.
Parameters:
  name - the attribute name.
public  ObjectgetAttribute(String name, int scope)
    
public  Enumeration<String>getAttributeNames()
    
public  EnumerationgetAttributeNames(int scope)
    
public  EnumerationgetAttributeNamesInScope(int scope)
    
public  intgetAttributesScope(String name)
     Return the scope of the named attribute.
Parameters:
  name - the name of the attribute.
public  LocalizationContextgetBundle(String name)
     Returns the localized message appropriate for the current context.
public  HttpServletRequestgetCauchoRequest()
     Returns the servlet response for the page.
public  CauchoResponsegetCauchoResponse()
     Returns the servlet response for the page.
public  ELContextgetELContext()
    
public  ErrorDatagetErrorData()
    
public  StringgetErrorPage()
     Returns the page's error page.
public  ExceptiongetException()
    
public  ExpressionEvaluatorgetExpressionEvaluator()
    
public  LocalegetLocale()
     Returns the currently active locale.
public static  LocalegetLocale(String value, String variant)
    
public  StringgetLocalizedMessage(String key, Object[] args, String basename)
     Returns the localized message appropriate for the current context.
public  StringgetLocalizedMessage(Object lc, String key, Object[] args, String basename)
     Returns the localized message appropriate for the current context.
public  NodegetNodeEnv()
    
public  JspWritergetOut()
     Returns the current writer.
 ServletOutputStreamgetOutputStream()
     Returns the response output stream.
public  ObjectgetPage()
     Returns the underlying servlet for the page.
public  ServletRequestgetRequest()
     Returns the servlet request for the page.
public  ServletResponsegetResponse()
     Returns the servlet response for the page.
public  ServletConfiggetServletConfig()
    
public  ServletContextgetServletContext()
     Returns the page's servlet context.
public  HttpSessiongetSession()
    
public  HttpSessiongetSessionScope()
     Returns the session, throwing an IllegalStateException if it's not available.
public  ThrowablegetThrowable()
     Returns the Throwable stored by the error page.
public  PrintWritergetTopWriter()
     Returns the top writer.
public  VarEnvgetVarEnv()
    
public  javax.servlet.jsp.el.VariableResolvergetVariableResolver()
    
public  voidhandlePageException(Exception e)
     Handles an exception caught in the JSP page.
public  voidhandlePageException(Throwable e)
     Handles an exception caught in the JSP page.
public  voidinclude(String relativeUrl)
    
public  voidinclude(String relativeUrl, String query, boolean flush)
     Include another servlet into the current output stream.
public  voidinclude(String relativeUrl, boolean flush)
     Include another servlet into the current output stream.
protected  voidinit()
    
public  voidinitialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPage, boolean needsSession, int bufferSize, boolean autoFlush)
    
public  voidinitialize(Servlet servlet, WebApp app, ServletRequest request, ServletResponse response, String errorPage, HttpSession session, int bufferSize, boolean autoFlush, boolean isPrintNullAsBlank)
    
public  Stringinvoke(JspFragment fragment)
     Evaluates the fragment, returing the string value.
public  ReaderinvokeReader(JspFragment fragment)
    
public  StringinvokeTrim(JspFragment fragment)
     Evaluates the fragment, returing the string value.
public  booleanisIgnoreException()
    
public  voidpageSetOrRemove(String var, Object value)
     Set/Remove a page attribute.
public  JspWriterpopAndReleaseBody()
     Pops the BodyContent from the JspWriter stack.
public  JspWriterpopBody()
     Pops the BodyContent from the JspWriter stack.
public static  voidprintBody(BodyContentImpl body, boolean isEscaped)
    
public  BodyContentpushBody()
     Pushes a new BodyContent onto the JspWriter stack.
public  JspWriterpushBody(Writer writer)
     Pushes a new writer onto the JspWriter stack.
public  ObjectputAttribute(String name, Object attribute)
     Sets the page attribute with the given name.
public  voidrelease()
     Releases the context.
public  voidreleaseBody(BodyContentImpl out)
    
public  voidremoveAttribute(String name)
     Removes a named attribute from the page context.
public  voidremoveAttribute(String name, int scope)
    
public  voidrequestSetOrRemove(String var, Object value)
     Set/Remove a request attribute.
public  ObjectresolveVariable(String name)
     Finds an attribute in any of the scopes from page to webApp.
Parameters:
  name - the attribute name.
public  voidsessionSetOrRemove(String var, Object value)
     Set/Remove a session attribute.
public  voidsetAttribute(String name, Object attribute)
     Sets the page attribute with the given name.
public  voidsetAttribute(String name, Object value, int scope)
    
public  voidsetErrorPage(String errorPage)
     Sets the page's error page.
public  Map<String, Object>setMap(Map<String, Object> map)
     Sets the attribute map.
public  voidsetNodeEnv(Node node)
    
protected  voidsetOut(JspWriter out)
    
public  JspWritersetWriter(JspWriter oldWriter)
     Pops the BodyContent from the JspWriter stack.
public static  booleantoBoolean(String value)
     Parses a boolean value.

Field Detail
L
final static L10N L(Code)



_isFilled
protected boolean _isFilled(Code)




Constructor Detail
PageContextImpl
PageContextImpl()(Code)



PageContextImpl
public PageContextImpl(WebApp webApp, Servlet servlet)(Code)



PageContextImpl
public PageContextImpl(WebApp webApp, HashMap<String, Method> functionMap)(Code)




Method Detail
applicationSetOrRemove
public void applicationSetOrRemove(String var, Object value)(Code)
Set/Remove an webApp attribute.



clearAttributes
protected void clearAttributes()(Code)



createExpr
public ValueExpression createExpr(ValueExpression expr, String exprString, Class type)(Code)
Creates an expression.



defaultSetOrRemove
public void defaultSetOrRemove(String var, Object value)(Code)
Set/Remove a page attribute.



fillAttribute
protected void fillAttribute()(Code)
Fills the predefined page content _attributes with their values.



findAttribute
public Object findAttribute(String name)(Code)
Finds an attribute in any of the scopes from page to webApp.
Parameters:
  name - the attribute name. the attribute value



forward
public void forward(String relativeUrl, String query) throws ServletException, IOException(Code)
Include another servlet into the current output stream.
Parameters:
  relativeUrl - url relative to the current request.



forward
public void forward(String relativeUrl) throws ServletException, IOException(Code)
Forward a subrequest relative to the current url. Absolute URLs are relative to the context root.
Parameters:
  relativeUrl - url relative to the current file



getApplication
public WebApp getApplication()(Code)
Returns the page's webApp.



getAttribute
public Object getAttribute(String name)(Code)
Returns the page attribute with the given name.
Parameters:
  name - the attribute name. the attribute's value.



getAttribute
public Object getAttribute(String name, int scope)(Code)



getAttributeNames
public Enumeration<String> getAttributeNames()(Code)



getAttributeNames
public Enumeration getAttributeNames(int scope)(Code)



getAttributeNamesInScope
public Enumeration getAttributeNamesInScope(int scope)(Code)



getAttributesScope
public int getAttributesScope(String name)(Code)
Return the scope of the named attribute.
Parameters:
  name - the name of the attribute. the scope of the attribute



getBundle
public LocalizationContext getBundle(String name)(Code)
Returns the localized message appropriate for the current context.



getCauchoRequest
public HttpServletRequest getCauchoRequest()(Code)
Returns the servlet response for the page.



getCauchoResponse
public CauchoResponse getCauchoResponse()(Code)
Returns the servlet response for the page.



getELContext
public ELContext getELContext()(Code)
Returns the expression evaluator



getErrorData
public ErrorData getErrorData()(Code)
Returns the error data



getErrorPage
public String getErrorPage()(Code)
Returns the page's error page.



getException
public Exception getException()(Code)



getExpressionEvaluator
public ExpressionEvaluator getExpressionEvaluator()(Code)
Returns the expression evaluator



getLocale
public Locale getLocale()(Code)
Returns the currently active locale.



getLocale
public static Locale getLocale(String value, String variant)(Code)



getLocalizedMessage
public String getLocalizedMessage(String key, Object[] args, String basename)(Code)
Returns the localized message appropriate for the current context.



getLocalizedMessage
public String getLocalizedMessage(Object lc, String key, Object[] args, String basename)(Code)
Returns the localized message appropriate for the current context.



getNodeEnv
public Node getNodeEnv()(Code)
Returns the XPath node environment corresponding to this page



getOut
public JspWriter getOut()(Code)
Returns the current writer.



getOutputStream
ServletOutputStream getOutputStream()(Code)
Returns the response output stream.



getPage
public Object getPage()(Code)
Returns the underlying servlet for the page.



getRequest
public ServletRequest getRequest()(Code)
Returns the servlet request for the page.



getResponse
public ServletResponse getResponse()(Code)
Returns the servlet response for the page.



getServletConfig
public ServletConfig getServletConfig()(Code)



getServletContext
public ServletContext getServletContext()(Code)
Returns the page's servlet context.



getSession
public HttpSession getSession()(Code)



getSessionScope
public HttpSession getSessionScope()(Code)
Returns the session, throwing an IllegalStateException if it's not available.



getThrowable
public Throwable getThrowable()(Code)
Returns the Throwable stored by the error page.



getTopWriter
public PrintWriter getTopWriter() throws IOException(Code)
Returns the top writer.



getVarEnv
public VarEnv getVarEnv()(Code)
Returns the XPath variable environment corresponding to this page



getVariableResolver
public javax.servlet.jsp.el.VariableResolver getVariableResolver()(Code)
Returns the variable resolver



handlePageException
public void handlePageException(Exception e) throws ServletException, IOException(Code)
Handles an exception caught in the JSP page.
Parameters:
  e - the caught exception



handlePageException
public void handlePageException(Throwable e) throws ServletException, IOException(Code)
Handles an exception caught in the JSP page.
Parameters:
  e - the caught exception



include
public void include(String relativeUrl) throws ServletException, IOException(Code)



include
public void include(String relativeUrl, String query, boolean flush) throws ServletException, IOException(Code)
Include another servlet into the current output stream.
Parameters:
  relativeUrl - url relative to the current request.



include
public void include(String relativeUrl, boolean flush) throws ServletException, IOException(Code)
Include another servlet into the current output stream.
Parameters:
  relativeUrl - url relative to the current request.



init
protected void init()(Code)



initialize
public void initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPage, boolean needsSession, int bufferSize, boolean autoFlush)(Code)



initialize
public void initialize(Servlet servlet, WebApp app, ServletRequest request, ServletResponse response, String errorPage, HttpSession session, int bufferSize, boolean autoFlush, boolean isPrintNullAsBlank)(Code)



invoke
public String invoke(JspFragment fragment) throws JspException, IOException(Code)
Evaluates the fragment, returing the string value.



invokeReader
public Reader invokeReader(JspFragment fragment) throws JspException, IOException(Code)
Evaluates the fragment, returing a reader



invokeTrim
public String invokeTrim(JspFragment fragment) throws JspException, IOException(Code)
Evaluates the fragment, returing the string value.



isIgnoreException
public boolean isIgnoreException()(Code)
Returns true if the EL ignores exceptions



pageSetOrRemove
public void pageSetOrRemove(String var, Object value)(Code)
Set/Remove a page attribute.



popAndReleaseBody
public JspWriter popAndReleaseBody() throws IOException(Code)
Pops the BodyContent from the JspWriter stack. the enclosing writer



popBody
public JspWriter popBody()(Code)
Pops the BodyContent from the JspWriter stack. the enclosing writer



printBody
public static void printBody(BodyContentImpl body, boolean isEscaped) throws IOException(Code)



pushBody
public BodyContent pushBody()(Code)
Pushes a new BodyContent onto the JspWriter stack.



pushBody
public JspWriter pushBody(Writer writer)(Code)
Pushes a new writer onto the JspWriter stack.



putAttribute
public Object putAttribute(String name, Object attribute)(Code)
Sets the page attribute with the given name.
Parameters:
  name - the attribute name.
Parameters:
  value - the new value



release
public void release()(Code)
Releases the context.



releaseBody
public void releaseBody(BodyContentImpl out) throws IOException(Code)



removeAttribute
public void removeAttribute(String name)(Code)
Removes a named attribute from the page context.
Parameters:
  name - the name of the attribute to remove



removeAttribute
public void removeAttribute(String name, int scope)(Code)



requestSetOrRemove
public void requestSetOrRemove(String var, Object value)(Code)
Set/Remove a request attribute.



resolveVariable
public Object resolveVariable(String name) throws javax.el.ELException(Code)
Finds an attribute in any of the scopes from page to webApp.
Parameters:
  name - the attribute name. the attribute value



sessionSetOrRemove
public void sessionSetOrRemove(String var, Object value)(Code)
Set/Remove a session attribute.



setAttribute
public void setAttribute(String name, Object attribute)(Code)
Sets the page attribute with the given name.
Parameters:
  name - the attribute name.
Parameters:
  value - the new value



setAttribute
public void setAttribute(String name, Object value, int scope)(Code)



setErrorPage
public void setErrorPage(String errorPage)(Code)
Sets the page's error page.



setMap
public Map<String, Object> setMap(Map<String, Object> map)(Code)
Sets the attribute map.



setNodeEnv
public void setNodeEnv(Node node)(Code)
Returns the XPath node environment corresponding to this page



setOut
protected void setOut(JspWriter out)(Code)



setWriter
public JspWriter setWriter(JspWriter oldWriter)(Code)
Pops the BodyContent from the JspWriter stack.
Parameters:
  oldWriter - the old writer



toBoolean
public static boolean toBoolean(String value)(Code)
Parses a boolean value.



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)

Methods inherited from javax.servlet.jsp.JspContext
abstract public Object findAttribute(String name)(Code)(Java Doc)
abstract public Object getAttribute(String name)(Code)(Java Doc)
abstract public Object getAttribute(String name, int scope)(Code)(Java Doc)
abstract public Enumeration getAttributeNamesInScope(int scope)(Code)(Java Doc)
abstract public int getAttributesScope(String name)(Code)(Java Doc)
abstract public ExpressionEvaluator getExpressionEvaluator()(Code)(Java Doc)
abstract public JspWriter getOut()(Code)(Java Doc)
abstract public VariableResolver getVariableResolver()(Code)(Java Doc)
public JspWriter popBody()(Code)(Java Doc)
public JspWriter pushBody(java.io.Writer writer)(Code)(Java Doc)
abstract public void removeAttribute(String name)(Code)(Java Doc)
abstract public void removeAttribute(String name, int scope)(Code)(Java Doc)
abstract public void setAttribute(String name, Object value)(Code)(Java Doc)
abstract public void setAttribute(String name, Object value, int scope)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.