Java Doc for ExpressoRequestProcessor.java in  » J2EE » Expresso » com » jcorporate » expresso » core » controller » 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 » Expresso » com.jcorporate.expresso.core.controller 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jcorporate.expresso.core.controller.ExpressoRequestProcessor

ExpressoRequestProcessor
public class ExpressoRequestProcessor extends TilesRequestProcessor (Code)
Title: Expresso Project Description: Copyright: Copyright (c) 2001, 2002, 2003 Company: Jcorporate
author:
   Peter Pilgrim, Wed Feb 12 20:13:46 GMT 2003
version:
   $Id: ExpressoRequestProcessor.java,v 1.10 2004/11/17 20:48:06 lhamel Exp $


Field Summary
protected static  Loglog
     Commons Logging instance.

Constructor Summary
public  ExpressoRequestProcessor()
    

Method Summary
public  ActioncreateAction(String className)
     Creates and return the Action controller.
public  voidinit(ActionServlet servlet, ModuleConfig moduleConfig)
     Initialize this request processor instance.
protected  voidprocessForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward)
     This method was created specifically to allow dynamic URL forwarding since we cannot muck with the Struts 1.1 configuration due to the 'freeze()' method.
protected  StringprocessPath(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
     subclass in order to allow ExpressoActionServlet to be a dispatcher for any finite-state-machine request which includes parameters for controller & state.
public  booleanprocessPrepocess(HttpServletRequest request, HttpServletResponse response)
     This method is call for each request.
protected  booleanprocessValidate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping)
    

Field Detail
log
protected static Log log(Code)
Commons Logging instance.




Constructor Detail
ExpressoRequestProcessor
public ExpressoRequestProcessor()(Code)
Default constructor




Method Detail
createAction
public Action createAction(String className)(Code)
Creates and return the Action controller. Request processor normally cache there action instances internally, therefore only an Action is normally created just once.
Parameters:
  className - the class name of the action to create the action controller or null if the action cannotbe created at all.



init
public void init(ActionServlet servlet, ModuleConfig moduleConfig) throws ServletException(Code)
Initialize this request processor instance.
Parameters:
  servlet - The ActionServlet we are associated with
Parameters:
  moduleConfig - The ModuleConfig we are associated with.
throws:
  ServletException - If an error occur during initialization



processForwardConfig
protected void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) throws java.io.IOException, javax.servlet.ServletException(Code)
This method was created specifically to allow dynamic URL forwarding since we cannot muck with the Struts 1.1 configuration due to the 'freeze()' method. It checks for
Parameters:
  request - The servlet request
Parameters:
  response - The servlet response
Parameters:
  forward - the default forward config that Struts was handed bythe controller



processPath
protected String processPath(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException(Code)
subclass in order to allow ExpressoActionServlet to be a dispatcher for any finite-state-machine request which includes parameters for controller & state. if ExpressoActionServlet does not play this role, URLs must have a known controller embedded, which is not good for a JSP, for example, that isn't supposed to know about controllers. instead, ExpressoServletAction can be the "universal dispatcher"

Identify and return the path component (from the request URI) that we will use to select an ActionMapping with which to dispatch. If no such path can be identified, create an error response and return null.


Parameters:
  httpServletRequest - The servlet request we are processing String



processPrepocess
public boolean processPrepocess(HttpServletRequest request, HttpServletResponse response)(Code)
This method is call for each request. By default it does nothing with the requests, but Expresso Framework may use this call in the future to handle security and authentication.
Parameters:
  request - The servlet request object
Parameters:
  response - The servlet response object true if successful



processValidate
protected boolean processValidate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws IOException, ServletException(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.