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


org.sakaiproject.vm.VmServlet
   org.sakaiproject.cheftool.VmServlet
      org.sakaiproject.cheftool.ToolServlet

All known Subclasses:   org.sakaiproject.cheftool.VelocityPortletPaneledAction,
ToolServlet
abstract public class ToolServlet extends VmServlet (Code)

ToolServlet is a Servlet that support CHEF tools.

Extending VmServlet provides support for component location and use of the Velocity Template Engine.



Field Summary
final protected static  StringALERT_ATTR
     The state attribute name used to store the Alert.
final protected static  StringALERT_STATE_INITED
     The state attribute name used to store the marker of have been initialized.
final protected static  StringHELPER_ID
     ToolSession attribute name holding the helper id, if we are in helper mode.
final protected  StringMAIN_PANEL
     The special panel name for the main.
final protected static  StringMENU_ATTR
     The state attribute name used to store the Menu.
final protected static  StringPARAM_ACTION
     The request parameter name whose value is the action.
final protected static  StringPARAM_ACTION_COMBO
     The request parameter name root that has the action name following.
final protected  StringTITLE_PANEL
     The special panel name for the title.
final protected  StringTOOL_MODE_ATTR
     The mode attribute name base - postfix with the portlet mode.
final protected  StringTOOL_MODE_DEFAULT
     The mode value when no mode has been set.


Method Summary
protected  voidactionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res)
     Dispatch to a "processAction" method based on reflection.
protected  voiddoGet(HttpServletRequest req, HttpServletResponse res)
    
protected  voiddoPost(HttpServletRequest req, HttpServletResponse res)
    
protected  AlertgetAlert(HttpServletRequest req)
     Access the Alert for the current request.
Parameters:
  req - The current portlet request.
protected  AlertgetAlert(SessionState state)
     Access the Alert in this state - will create one if needed.
Parameters:
  state - The state in which to find the alert.
protected  MenugetMenu(HttpServletRequest req)
     Access the Menu for the current request.
Parameters:
  req - The current portlet request.
protected  StringgetPid(HttpServletRequest req)
     Access the "pid" - portlet window id, tool id, from the request
Parameters:
  req - The current request.
protected  SessionStategetState(HttpServletRequest req)
     Access the SessionState for the current request.
protected  StringgetToolMode(HttpServletRequest req)
     Access the tool mode for the current Portlet mode.
protected  voidinitState(SessionState state, HttpServletRequest req, HttpServletResponse res)
     Initialize for the first time the session state for this session.
protected  voidprepState(HttpServletRequest req, HttpServletResponse res)
    
protected  voidprocessAction(HttpServletRequest req, HttpServletResponse res)
     Process a Portlet action.
protected  booleansendToHelper(HttpServletRequest req, HttpServletResponse res, String target)
    
protected  voidsetToolMode(String toolMode, HttpServletRequest req)
     Set the tool mode.
protected  voidsetVmStdRef(HttpServletRequest request, HttpServletResponse response)
     Add some standard references to the vm context.
protected  voidstartHelper(HttpServletRequest req, String helperId, String panel)
     Setup for a helper tool - all subsequent requests will be directed there, till the tool is done.
protected  voidstartHelper(HttpServletRequest req, String helperId)
     Setup for a helper tool - all subsequent requests will be directed there, till the tool is done.
protected  voidtoolModeDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res)
     Dispatch to a "do" method based on reflection.
protected  voidupdateState(SessionState state, HttpServletRequest req, HttpServletResponse res)
     Update for this request processing the session state.

Field Detail
ALERT_ATTR
final protected static String ALERT_ATTR(Code)
The state attribute name used to store the Alert.



ALERT_STATE_INITED
final protected static String ALERT_STATE_INITED(Code)
The state attribute name used to store the marker of have been initialized.



HELPER_ID
final protected static String HELPER_ID(Code)
ToolSession attribute name holding the helper id, if we are in helper mode. NOTE: promote to Tool -ggolden



MAIN_PANEL
final protected String MAIN_PANEL(Code)
The special panel name for the main.



MENU_ATTR
final protected static String MENU_ATTR(Code)
The state attribute name used to store the Menu.



PARAM_ACTION
final protected static String PARAM_ACTION(Code)
The request parameter name whose value is the action.



PARAM_ACTION_COMBO
final protected static String PARAM_ACTION_COMBO(Code)
The request parameter name root that has the action name following.



TITLE_PANEL
final protected String TITLE_PANEL(Code)
The special panel name for the title.



TOOL_MODE_ATTR
final protected String TOOL_MODE_ATTR(Code)
The mode attribute name base - postfix with the portlet mode.



TOOL_MODE_DEFAULT
final protected String TOOL_MODE_DEFAULT(Code)
The mode value when no mode has been set.





Method Detail
actionDispatch
protected void actionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res)(Code)
Dispatch to a "processAction" method based on reflection.
Parameters:
  methodBase - The base name of the method to call.
Parameters:
  methodExt - The end name of the method to call.
Parameters:
  req - The ActionRequest.
Parameters:
  res - The ActionResponse
throws:
  PortletExcption - ,IOException, just like the "do" methods.



doGet
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException(Code)
Respond to a request by dispatching to a portlet like "do" method based on the portlet mode and tool mode



doPost
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException(Code)
Respond to a request by dispatching to a portlet like "do" method based on the portlet mode and tool mode



getAlert
protected Alert getAlert(HttpServletRequest req)(Code)
Access the Alert for the current request.
Parameters:
  req - The current portlet request. The Alert objet for the current request.



getAlert
protected Alert getAlert(SessionState state)(Code)
Access the Alert in this state - will create one if needed.
Parameters:
  state - The state in which to find the alert. The Alert objet.



getMenu
protected Menu getMenu(HttpServletRequest req)(Code)
Access the Menu for the current request.
Parameters:
  req - The current portlet request. The Menu objet for the current request.



getPid
protected String getPid(HttpServletRequest req)(Code)
Access the "pid" - portlet window id, tool id, from the request
Parameters:
  req - The current request. the "pid" - portlet window id, tool id, from the request



getState
protected SessionState getState(HttpServletRequest req)(Code)
Access the SessionState for the current request. Note: this is scoped only for the current request.
Parameters:
  req - The current portlet request. The SessionState objet for the current request.



getToolMode
protected String getToolMode(HttpServletRequest req)(Code)
Access the tool mode for the current Portlet mode. the tool mode for the current Portlet mode.
Parameters:
  req - The portlet request.



initState
protected void initState(SessionState state, HttpServletRequest req, HttpServletResponse res)(Code)
Initialize for the first time the session state for this session. If overridden in a sub-class, make sure to call super.
Parameters:
  state - The session state.
Parameters:
  req - The current request.
Parameters:
  res - The current response.



prepState
protected void prepState(HttpServletRequest req, HttpServletResponse res)(Code)
Prepare state, either for first time or update
Parameters:
  req - The current portlet request.
Parameters:
  res - The current response.



processAction
protected void processAction(HttpServletRequest req, HttpServletResponse res)(Code)
Process a Portlet action.



sendToHelper
protected boolean sendToHelper(HttpServletRequest req, HttpServletResponse res, String target) throws ToolException(Code)

Parameters:
  req -
Parameters:
  res -
Parameters:
  target -
throws:
  ToolException -



setToolMode
protected void setToolMode(String toolMode, HttpServletRequest req)(Code)
Set the tool mode.
Parameters:
  toolMode - The new tool mode.
Parameters:
  req - The portlet request.



setVmStdRef
protected void setVmStdRef(HttpServletRequest request, HttpServletResponse response)(Code)
Add some standard references to the vm context.
Parameters:
  request - The render request.
Parameters:
  response - The render response.



startHelper
protected void startHelper(HttpServletRequest req, String helperId, String panel)(Code)
Setup for a helper tool - all subsequent requests will be directed there, till the tool is done.
Parameters:
  helperId - The helper tool id.



startHelper
protected void startHelper(HttpServletRequest req, String helperId)(Code)
Setup for a helper tool - all subsequent requests will be directed there, till the tool is done.
Parameters:
  helperId - The helper tool id.



toolModeDispatch
protected void toolModeDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res) throws ToolException(Code)
Dispatch to a "do" method based on reflection.
Parameters:
  methodBase - The base name of the method to call.
Parameters:
  methodExt - The end name of the method to call.
Parameters:
  req - The HttpServletRequest.
Parameters:
  res - The HttpServletResponse
throws:
  PortletExcption - ,IOException, just like the "do" methods.



updateState
protected void updateState(SessionState state, HttpServletRequest req, HttpServletResponse res)(Code)
Update for this request processing the session state. If overridden in a sub-class, make sure to call super.
Parameters:
  state - The session state.
Parameters:
  req - The current request.
Parameters:
  res - The current response.



Fields inherited from org.sakaiproject.cheftool.VmServlet
final protected Validator m_validator(Code)(Java Doc)

Methods inherited from org.sakaiproject.cheftool.VmServlet
protected void setVmStdRef(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)

Methods inherited from org.sakaiproject.vm.VmServlet
protected ActionURL getActionURL(HttpServletRequest request)(Code)(Java Doc)
public Object getVmReference(String name, HttpServletRequest request)(Code)(Java Doc)
protected void includeVm(String template, HttpServletRequest request, HttpServletResponse response) throws ServletException(Code)(Java Doc)
public void setVmReference(String name, Object value, HttpServletRequest request)(Code)(Java Doc)
protected void setVmStdRef(HttpServletRequest request, HttpServletResponse response)(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.