Java Doc for JSPRenderingProvider.java in  » Portal » Open-Portal » com » sun » portal » wireless » providers » rendering » 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 » Portal » Open Portal » com.sun.portal.wireless.providers.rendering 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.portal.providers.jsp.JSPProvider
   com.sun.portal.wireless.providers.rendering.JSPRenderingProvider

All known Subclasses:   com.sun.portal.wireless.providers.rendering.wrapping.RenderingWrappingProvider,
JSPRenderingProvider
public class JSPRenderingProvider extends JSPProvider (Code)
The JSPRenderingProvider class extends from the JSPProvider and overrides the getContent, getEdit and getMostSpecificPath methods of JSPProvider. This is a public class and can be extended to add more functionality to the provider if needed. It gets the AML content from JSP templates for the provider and based on a few checks, it decides whether to pass the AML content back to the container or call the RenderingEngine itself and pass back device specific markup to the container.

Rendering Channels created using this JSPRenderingProvider can be a part of either RenderingContainers or NativeContainers. While creating channels using JSPRenderingProvider, the channel developer has to write a contentPage.jsp and editPage.jsp (if channel is editable) which would get the content from AML JSPs it has.

All JSPs created for the channel should be valid AML documents.





Method Summary
public  StringBuffergetContent(HttpServletRequest req, HttpServletResponse res)
     This method overrides JSPProvider.getContent() method.
public  StringBuffergetEdit(HttpServletRequest req, HttpServletResponse res)
     This method overrides JSPProvider.getEdit() method.
public  FilegetExistingJSPPath(ProviderContext pc, String name, String file)
     Get the most specific JSP path for the given channel name and file name.
protected  FilegetMostSpecificJSPPath(ProviderContext pc, String name, String file)
     Get the most specific JSP path for the given channel name and file name.
public  voidinit(String name, HttpServletRequest req)
    
protected  StringBufferrenderContent(HttpServletRequest req, StringBuffer sb)
     This method is expected to be called from the Provider's getContent() methods after it creates its content StringBuffer.
protected  StringBufferrenderEditContent(HttpServletRequest req, StringBuffer sb)
     This method is expected to be called from the Provider's getEdit() methods after it creates its content StringBuffer.



Method Detail
getContent
public StringBuffer getContent(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)
This method overrides JSPProvider.getContent() method. It gets the JSP content from JSPProvider and pass it to renderContent() method. Based on a few check, it will either return device specfic markup or AML. StringBuffer holding the channel content that is markup specific or AML.
exception:
  ProviderException - If there was an error generating the content.
Parameters:
  request - An HttpServletRequest that contains information related tothis request for content.
Parameters:
  response - An HttpServletResponse that allows the provider to influence overall response for the desktop page.
See Also:   com.sun.portal.providers.jsp.JSPProvider.getContent



getEdit
public StringBuffer getEdit(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)
This method overrides JSPProvider.getEdit() method. It gets the JSP edit page content from JSPProvider and pass it to renderContent() method. Based on a few check, it will either return device specfic markup or AML. StringBuffer holding the channel edit page that is markup specific or AML.
exception:
  ProviderException - If there was an error generating the content.
Parameters:
  request - An HttpServletRequest that contains information related xto this request for content.
Parameters:
  response - An HttpServletResponse that allows the provider to influence overall response for the desktop page.
See Also:   com.sun.portal.providers.jsp.JSPProvider.getEdit



getExistingJSPPath
public File getExistingJSPPath(ProviderContext pc, String name, String file) throws ProviderException(Code)
Get the most specific JSP path for the given channel name and file name. This method overrides the JSPProvider. getExistingJSPPath() method and calls RenderingUtils.getTemplatePath to get the real path.
Parameters:
  pc - The ProviderContext.
Parameters:
  name - The channel name.
Parameters:
  file - The jsp file name.
exception:
  ProviderException - if an error occurs in getting the path.
See Also:   com.sun.portal.providers.jsp.JSPProvider.getExistingJSPPath
See Also:   com.sun.portal.wireless.providers.rendering.RenderingUtil.getTemplatePath



getMostSpecificJSPPath
protected File getMostSpecificJSPPath(ProviderContext pc, String name, String file) throws ProviderException(Code)
Get the most specific JSP path for the given channel name and file name. This method overrides the JSPProvider. getMostSpecificJSPPath() method and calls RenderingUtils.getTemplateMostSpecificPath to get the real path.
Parameters:
  pc - The ProviderContext.
Parameters:
  name - The channel name.
Parameters:
  file - The jsp file name.
exception:
  ProviderException - if an error occurs in getting the path.
See Also:   com.sun.portal.providers.jsp.JSPProvider.getMostSpecificJSPPath
See Also:   com.sun.portal.wireless.providers.rendering.RenderingUtil.getTemplateMostSpecificPath



init
public void init(String name, HttpServletRequest req) throws ProviderException(Code)



renderContent
protected StringBuffer renderContent(HttpServletRequest req, StringBuffer sb) throws ProviderException(Code)
This method is expected to be called from the Provider's getContent() methods after it creates its content StringBuffer. It calls RenderingUtil.renderContent() to render the content. The return buffer can contain device specific markup (rendered) or remain as AML document (not rendered).
Parameters:
  req - An HttpServletRequest that contains information related to thisrequest for content.
Parameters:
  sb - The StringBuffer representing the content obtained from the JSPs. StringBuffer The return content can be rendered or not rendered.
See Also:   com.sun.portal.wireless.providers.rendering.RenderingUtil.renderContent



renderEditContent
protected StringBuffer renderEditContent(HttpServletRequest req, StringBuffer sb) throws ProviderException(Code)
This method is expected to be called from the Provider's getEdit() methods after it creates its content StringBuffer. It calls RenderingUtil.renderEditContent() to render the content. The return buffer can contain device specific markup (rendered) or remain as AML document (not rendered).
Parameters:
  req - An HttpServletRequest that contains information related to thisrequest for content.
Parameters:
  sb - The StringBuffer representing the content obtained from the JSPs. StringBuffer The return content can be rendered or not rendered.
See Also:   com.sun.portal.wireless.providers.rendering.RenderingUtil.renderContent



Methods inherited from com.sun.portal.providers.jsp.JSPProvider
protected File getCompiledJSPPath(ProviderContext pc, String channel, String file) throws ProviderException(Code)(Java Doc)
public StringBuffer getContent(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)(Java Doc)
protected String getContentPage() throws ProviderException(Code)(Java Doc)
public StringBuffer getEdit(HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)(Java Doc)
protected String getEditPage() throws ProviderException(Code)(Java Doc)
protected File getExistingJSPPath(ProviderContext pc, String channel, String file) throws ProviderException(Code)(Java Doc)
protected File getMostSpecificJSPPath(ProviderContext pc, String channel, String file) throws ProviderException(Code)(Java Doc)
protected String getProcessPage() throws ProviderException(Code)(Java Doc)
protected StringBuffer includeJspPage(String jsp, Hashtable parameters, HttpServletRequest req, HttpServletResponse res) throws ProviderException(Code)(Java Doc)
public void init(String n, HttpServletRequest httpreq) throws ProviderException(Code)(Java Doc)
public boolean isPresentable(HttpServletRequest req)(Code)(Java Doc)
public URL processEdit(HttpServletRequest req, HttpServletResponse res) throws ProviderException(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.