Java Doc for BridgeExternalContext.java in  » J2EE » ICEfaces-1.6.1 » com » icesoft » faces » context » 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 » ICEfaces 1.6.1 » com.icesoft.faces.context 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.icesoft.faces.context.BridgeExternalContext

All known Subclasses:   com.icesoft.faces.webapp.http.servlet.ServletExternalContext,  com.icesoft.faces.webapp.http.portlet.PortletExternalContext,
BridgeExternalContext
abstract public class BridgeExternalContext extends ExternalContext (Code)
This class is supposed to provide a generic interface to the environment that we're running in (e.g. servlets, portlets).

Inner Class :public interface Redirector
Inner Class :public interface CookieTransporter
Inner Class :public class CommandQueueRedirector implements Redirector
Inner Class :public class CommandQueueCookieTransporter implements CookieTransporter

Field Summary
protected  MapapplicationMap
    
protected  CommandQueuecommandQueue
    
protected  CookieTransportercookieTransporter
    
protected  MapinitParameterMap
    
protected  Redirectorredirector
    
protected  MaprequestCookieMap
    
protected  MaprequestMap
    
protected  MaprequestParameterMap
    
protected  MaprequestParameterValuesMap
    
protected  StringrequestPathInfo
    
protected  StringrequestServletPath
    
protected  MapresponseCookieMap
    
protected  MapsessionMap
    
protected  booleanstandardScope
    
protected  StringviewIdentifier
    

Constructor Summary
protected  BridgeExternalContext(String viewIdentifier, CommandQueue commandQueue, Configuration configuration)
    

Method Summary
public  voidaddCookie(Cookie cookie)
    
protected  voidapplySeamLifecycleShortcut(boolean persistSeamKey)
    
public  MapcollectBundles()
    
public  voiddispose()
    
public  MapgetApplicationMap()
    
public  MapgetApplicationSessionMap()
    
public  StringgetInitParameter(String name)
    
public  MapgetInitParameterMap()
    
public  MapgetRequestCookieMap()
    
public  MapgetRequestMap()
    
public  MapgetRequestParameterMap()
    
public  IteratorgetRequestParameterNames()
    
public  MapgetRequestParameterValuesMap()
    
abstract public  StringgetRequestURI()
    
public  MapgetResponseCookieMap()
     This method is not necessary.
public  MapgetSessionMap()
    
abstract public  WritergetWriter(String encoding)
    
public  voidinjectBundles(Map bundles)
    
protected  voidinsertNewViewrootToken()
     Any GET request performed by the browser is a non-faces request to the framework. (JSF-spec chapter 2, introduction).
protected  voidinsertPostbackKey()
    
protected  booleanisSeamLifecycleShortcut()
    
public  voidredirect(String requestURI)
    
public  voidresetRequestMap()
     If in Standard request scope mode, remove all parameters from the Request Map.
public  voidsetRequestPathInfo(String viewId)
    
public  voidsetRequestServletPath(String viewId)
    
abstract public  voidswitchToNormalMode()
    
abstract public  voidswitchToPushMode()
    
abstract public  voidupdate(HttpServletRequest request, HttpServletResponse response)
    
abstract public  voidupdateOnReload(Object request, Object response)
    

Field Detail
applicationMap
protected Map applicationMap(Code)



commandQueue
protected CommandQueue commandQueue(Code)



cookieTransporter
protected CookieTransporter cookieTransporter(Code)



initParameterMap
protected Map initParameterMap(Code)



redirector
protected Redirector redirector(Code)



requestCookieMap
protected Map requestCookieMap(Code)



requestMap
protected Map requestMap(Code)



requestParameterMap
protected Map requestParameterMap(Code)



requestParameterValuesMap
protected Map requestParameterValuesMap(Code)



requestPathInfo
protected String requestPathInfo(Code)



requestServletPath
protected String requestServletPath(Code)



responseCookieMap
protected Map responseCookieMap(Code)



sessionMap
protected Map sessionMap(Code)



standardScope
protected boolean standardScope(Code)



viewIdentifier
protected String viewIdentifier(Code)




Constructor Detail
BridgeExternalContext
protected BridgeExternalContext(String viewIdentifier, CommandQueue commandQueue, Configuration configuration)(Code)




Method Detail
addCookie
public void addCookie(Cookie cookie)(Code)



applySeamLifecycleShortcut
protected void applySeamLifecycleShortcut(boolean persistSeamKey)(Code)



collectBundles
public Map collectBundles()(Code)



dispose
public void dispose()(Code)



getApplicationMap
public Map getApplicationMap()(Code)



getApplicationSessionMap
public Map getApplicationSessionMap()(Code)



getInitParameter
public String getInitParameter(String name)(Code)



getInitParameterMap
public Map getInitParameterMap()(Code)



getRequestCookieMap
public Map getRequestCookieMap()(Code)



getRequestMap
public Map getRequestMap()(Code)



getRequestParameterMap
public Map getRequestParameterMap()(Code)



getRequestParameterNames
public Iterator getRequestParameterNames()(Code)



getRequestParameterValuesMap
public Map getRequestParameterValuesMap()(Code)



getRequestURI
abstract public String getRequestURI()(Code)



getResponseCookieMap
public Map getResponseCookieMap()(Code)
This method is not necessary. The application developer can keep track of the added cookies.



getSessionMap
public Map getSessionMap()(Code)



getWriter
abstract public Writer getWriter(String encoding) throws IOException(Code)



injectBundles
public void injectBundles(Map bundles)(Code)



insertNewViewrootToken
protected void insertNewViewrootToken()(Code)
Any GET request performed by the browser is a non-faces request to the framework. (JSF-spec chapter 2, introduction). Given this, the framework must create a new viewRoot for the request, even if the viewId has already been visited. (Spec section 2.1.1)

Only during GET's remember, not during partial submits, where the JSF framework must be allowed to attempt to restore the view. There is a great deal of Seam related code that depends on this happening. So put in a token that allows the D2DViewHandler to differentiate between the non-faces request, and the postbacks, for this request, which will allow the ViewHandler to make the right choice, since we keep the view around for all types of requests




insertPostbackKey
protected void insertPostbackKey()(Code)



isSeamLifecycleShortcut
protected boolean isSeamLifecycleShortcut()(Code)



redirect
public void redirect(String requestURI) throws IOException(Code)



resetRequestMap
public void resetRequestMap()(Code)
If in Standard request scope mode, remove all parameters from the Request Map.



setRequestPathInfo
public void setRequestPathInfo(String viewId)(Code)



setRequestServletPath
public void setRequestServletPath(String viewId)(Code)



switchToNormalMode
abstract public void switchToNormalMode()(Code)



switchToPushMode
abstract public void switchToPushMode()(Code)



update
abstract public void update(HttpServletRequest request, HttpServletResponse response)(Code)



updateOnReload
abstract public void updateOnReload(Object request, Object response)(Code)



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