Java Doc for IController.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » channels » 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 » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.channels.jsp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jasig.portal.channels.jsp.IController

All known Subclasses:   org.jasig.portal.channels.jspSample.Controller,
IController
public interface IController extends ICacheable(Code)
Implementors of this interface can be used in the Jsp Channel Type to a create a channel whose content is served up from JSPs in a model II controller architecture. The controller can act on each incoming request via the processRuntimeData method and alter its internal model accordingly. There is one controller intance per channel per user so it can safely use instance variables. Any business objects that need to be passed to one of its JSPs via the request object should be placed in the Map returned from that method.
author:
   Mark Boyd


Field Summary
public static  StringJSP_DEPLOY_PATH
    


Method Summary
public  MapgetJspMap()
     Returns a Map of jsp pages that are exposed by the controller.
public  StringgetJspToRender()
     Returns the id of the jsp that should be delegated to for this request.
public  MapprocessRuntimeData(ChannelRuntimeData drd, HttpSession s)
     Allows the plugged-in controller for the jsp channel to have access to request-time parameters passed back to the channel instance and to take action internally.
public  voidreceiveEvent(PortalEvent ev)
     Allows the plugged-in controller for the jsp channel to know about channel events.
public  voidsetStaticData(ChannelStaticData csd)
     Allows the plugged-in controller for the jsp channel to have access to publish-time parameters and other information about the user.

Field Detail
JSP_DEPLOY_PATH
public static String JSP_DEPLOY_PATH(Code)





Method Detail
getJspMap
public Map getJspMap()(Code)
Returns a Map of jsp pages that are exposed by the controller. This map is a name/value pair, where the name is the actual jsp channel name and the value is the request path. Process flow of the channel framework dictates that the map should be available to the controlling channel during the setStaticData method call. An example of the values that would be typically be placed in the map by the controller is:
 jspmap.put("show.UserInfo.jsp","jsps/user.jsp"); 
 



getJspToRender
public String getJspToRender()(Code)
Returns the id of the jsp that should be delegated to for this request. The set of ids that can be returned and the jsps that each id maps to is defined in the getJspMap method. Their value indicates the location of the specific jsp page to be used. The location returned follows the pattern used by java.lang.Class.getResource(). If the value begins with a "/" it is left unchanged; otherwise, the package name of the controller class is prepended to the value after converting "." to "/". In either case the location is expected to be relative to the "WEB-INF/classes" directory for the webapp and the JSP is then delegated to using a request dispatcher. If the controller, its JSPs, and any other resource are is deployed as a CAR the Channel class extracts and class files and JSPs into WEB-INF/classes in package relative locations so that the web server can compile the JSPs and so that the JSPs can access the classes. All other resources remain within the CAR and are accesses appropriately by the Channel. * An example of the values that would be typically be placed in the map by the controller is:
 map.put("show.UserInfo.jsp","jsps/user.jsp"); 
 
For the above example if the controller were in the com.sct.myChannel package and this method returned "show.UserInfo.jsp" then the fully qualified path specified to acquire the dispatcher would be: "/WEB-INF/classes/com/sct/myChannel/jsp/user.jsp" This method should never return a value of null. If the last content generated by the channel should be used the ICacheable implementations should indicate such behavior and prevent this method from being called. This method will only be called when new rendering is required as dictated by reponses to the ICacheable implementation methods.



processRuntimeData
public Map processRuntimeData(ChannelRuntimeData drd, HttpSession s)(Code)
Allows the plugged-in controller for the jsp channel to have access to request-time parameters passed back to the channel instance and to take action internally. Any objects that should be passed to the jsp to be delegated to should be placed in the returned Map object and they will be added to the request.setAttribute() method using the same keys and values. If no objects are to be passed to the jsp via the request object then this method can return null. If a Map is returned two parameters will be passed added in to be passed to the jsp by the containing Jsp Channel type and will override values having the same key already located within the Map passed back from the controller. These are "baseActionUrl" and "baseMediaUrl".



receiveEvent
public void receiveEvent(PortalEvent ev)(Code)
Allows the plugged-in controller for the jsp channel to know about channel events.
See Also:   org.jasig.portal.IChannel.receiveEvent(org.jasig.portal.PortalEvent)



setStaticData
public void setStaticData(ChannelStaticData csd)(Code)
Allows the plugged-in controller for the jsp channel to have access to publish-time parameters and other information about the user. Included in the set are parameters whose keys end in ".jsp". Additionally, there will be one parameter whose key is "controllerClass". The are used by the jsp channel itself. For more information see the indicated method. Beyond these two restrictions on keys any other parameters can be specified during publishing that are needed by the controller to perform its work. In addition to the static data the HttpSession is also passed in and can be used to set both session and application scope values to be used in its JSPs.
See Also:   org.jasig.portal.channels.jsp.IController.getJspToRender



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