Java Doc for MercuryPortal.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » portal » tool » 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 » ERP CRM Financial » sakai » org.sakaiproject.portal.tool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.http.HttpServlet
   org.sakaiproject.portal.tool.MercuryPortal

MercuryPortal
public class MercuryPortal extends HttpServlet (Code)

Mercury is the Sakai developers portal. It can be used while developing a new Sakai application to invoke the tool in the way that the tool will be invoked by any of the Sakai navigation / portal technologies. Mercury is easier to use in development because you don't have to setup a Site or build SuperStructure to test your application.

Mercury supports a few URL patterns, but those give you the ability to:

  • login to Sakai
  • see all registered tools
  • visit any tool complete with context and placement

Mercury is configured to be packaged into the "mercury.war" web application, so it can be visited with the /mercury URL.

To login, use the /mercury/login URL.

To visit any registered tool, use the URL pattern:
  • /mercury/TOOL-ID/CONTEXT/path-for-tool
where TOOL_ID is the tool's well known registered tool id (such as 'sakai.chat'), and CONTEXT is the tool context string.

A placement will be created for each tool in the context as needed, and will be tracked for the duration of the server run.



Field Summary
protected  Mapm_placements
     Map of context+toolId -> Placement for keeping tool placements.


Method Summary
public  voiddestroy()
     Shutdown the servlet.
protected  voiddoDisabled(HttpServletRequest req, HttpServletResponse res)
    
protected  voiddoError(HttpServletRequest req, HttpServletResponse res, Session session)
    
protected  voiddoGet(HttpServletRequest req, HttpServletResponse res)
     Respond to navigation / access requests.
Parameters:
  req - The servlet request.
Parameters:
  res - The servlet response.
protected  voiddoHome(HttpServletRequest req, HttpServletResponse res, Session session)
    
protected  voiddoLogin(HttpServletRequest req, HttpServletResponse res, Session session)
    
protected  voiddoLoginx(HttpServletRequest req, HttpServletResponse res, String which, Session session)
    
protected  voiddoLogout(HttpServletRequest req, HttpServletResponse res, Session session)
    
protected  voiddoPost(HttpServletRequest req, HttpServletResponse res)
     Respond to data posting requests.
Parameters:
  req - The servlet request.
Parameters:
  res - The servlet response.
protected  voiddoThrowableError(HttpServletRequest req, HttpServletResponse res, Throwable t)
    
protected  voiddoTool(HttpServletRequest req, HttpServletResponse res, Session session, String toolId, String context, String toolContextPath, String toolPathInfo)
    
protected  voidforwardTool(ActiveTool tool, HttpServletRequest req, HttpServletResponse res, Placement p, String toolContextPath, String toolPathInfo)
    
public  StringgetServletInfo()
     Access the Servlet's information display.
public  voidinit(ServletConfig config)
     Initialize the servlet.
protected  voidpostHome(HttpServletRequest req, HttpServletResponse res, Session session)
    
protected  voidpostLogin(HttpServletRequest req, HttpServletResponse res, Session session)
    
protected  voidpostTool(HttpServletRequest req, HttpServletResponse res, Session session, String toolId, String context, String toolContextPath, String toolPathInfo)
    
protected  StringprintCategories(Set categories)
     Format the tool's categories
Parameters:
  categories - The categories set.
protected  StringprintConfiguration(Properties config)
     Format the tool's configuration parameters
Parameters:
  t - The tool.
protected  StringprintKeywords(Set keywords)
     Format the tool's keywords
Parameters:
  keywords - The keywords set.
protected  voidshowSession(PrintWriter out, boolean html)
    

Field Detail
m_placements
protected Map m_placements(Code)
Map of context+toolId -> Placement for keeping tool placements.





Method Detail
destroy
public void destroy()(Code)
Shutdown the servlet.



doDisabled
protected void doDisabled(HttpServletRequest req, HttpServletResponse res) throws IOException(Code)



doError
protected void doError(HttpServletRequest req, HttpServletResponse res, Session session) throws IOException(Code)



doGet
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException(Code)
Respond to navigation / access requests.
Parameters:
  req - The servlet request.
Parameters:
  res - The servlet response. ServletException. IOException.



doHome
protected void doHome(HttpServletRequest req, HttpServletResponse res, Session session) throws IOException(Code)



doLogin
protected void doLogin(HttpServletRequest req, HttpServletResponse res, Session session) throws ToolException(Code)



doLoginx
protected void doLoginx(HttpServletRequest req, HttpServletResponse res, String which, Session session) throws ToolException, IOException(Code)



doLogout
protected void doLogout(HttpServletRequest req, HttpServletResponse res, Session session) throws ToolException(Code)
Process a logout - borrowed from CharonPortal.java
Parameters:
  req - Request object
Parameters:
  res - Response object
Parameters:
  session - Current session
throws:
  IOException -



doPost
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException(Code)
Respond to data posting requests.
Parameters:
  req - The servlet request.
Parameters:
  res - The servlet response. ServletException. IOException.



doThrowableError
protected void doThrowableError(HttpServletRequest req, HttpServletResponse res, Throwable t)(Code)



doTool
protected void doTool(HttpServletRequest req, HttpServletResponse res, Session session, String toolId, String context, String toolContextPath, String toolPathInfo) throws ToolException, IOException(Code)



forwardTool
protected void forwardTool(ActiveTool tool, HttpServletRequest req, HttpServletResponse res, Placement p, String toolContextPath, String toolPathInfo) throws ToolException(Code)
Forward to the tool - setup JavaScript/CSS etc that the tool will render



getServletInfo
public String getServletInfo()(Code)
Access the Servlet's information display. servlet information.



init
public void init(ServletConfig config) throws ServletException(Code)
Initialize the servlet.
Parameters:
  config - The servlet config.
throws:
  ServletException -



postHome
protected void postHome(HttpServletRequest req, HttpServletResponse res, Session session) throws IOException(Code)



postLogin
protected void postLogin(HttpServletRequest req, HttpServletResponse res, Session session) throws ToolException(Code)



postTool
protected void postTool(HttpServletRequest req, HttpServletResponse res, Session session, String toolId, String context, String toolContextPath, String toolPathInfo) throws ToolException, IOException(Code)



printCategories
protected String printCategories(Set categories)(Code)
Format the tool's categories
Parameters:
  categories - The categories set. The tool's categories, formatted for HTML display.



printConfiguration
protected String printConfiguration(Properties config)(Code)
Format the tool's configuration parameters
Parameters:
  t - The tool. The tool's configuration parameters, formatted for HTML display.



printKeywords
protected String printKeywords(Set keywords)(Code)
Format the tool's keywords
Parameters:
  keywords - The keywords set. The tool's keywords, formatted for HTML display.



showSession
protected void showSession(PrintWriter out, boolean html)(Code)
Output some session information
Parameters:
  out - The print writer
Parameters:
  html - If true, output in HTML, else in text.



Methods inherited from javax.servlet.http.HttpServlet
protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected long getLastModified(HttpServletRequest req)(Code)(Java Doc)
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(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.