Java Doc for TilesRequestProcessor.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » tiles » 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 » Web Framework » struts 1.3.8 » org.apache.struts.tiles 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.struts.action.RequestProcessor
      org.apache.struts.tiles.TilesRequestProcessor

All known Subclasses:   org.apache.struts.faces.application.FacesTilesRequestProcessor,
TilesRequestProcessor
public class TilesRequestProcessor extends RequestProcessor (Code)

RequestProcessor contains the processing logic that the Struts controller servlet performs as it receives each servlet request from the container.

This processor subclasses the Struts RequestProcessor in order to intercept calls to forward or include. When such calls are done, the Tiles processor checks if the specified URI is a definition name. If true, the definition is retrieved and included. If false, the original URI is included or a forward is performed.

Actually, catching is done by overloading the following methods:


since:
   Struts 1.1


Field Summary
protected  DefinitionsFactorydefinitionsFactory
     Definitions factory.
protected static  Loglog
     Commons Logging instance.


Method Summary
protected  voiddoForward(String uri, HttpServletRequest request, HttpServletResponse response)
     Do a forward using request dispatcher. Uri is a valid uri.
public  DefinitionsFactorygetDefinitionsFactory()
     Get associated definition factory.
public  voidinit(ActionServlet servlet, ModuleConfig moduleConfig)
     Initialize this request processor instance.
protected  voidinitDefinitionsMapping()
     Read component instance mapping configuration file.
protected  voidinternalModuleRelativeForward(String uri, HttpServletRequest request, HttpServletResponse response)
     Catch the call to a module relative forward. If the specified uri is a tiles definition name, insert it. Otherwise, parent processing is called. Do a module relative forward to specified uri using request dispatcher. Uri is relative to the current module.
protected  voidinternalModuleRelativeInclude(String uri, HttpServletRequest request, HttpServletResponse response)
     Do a module relative include to specified uri using request dispatcher. Uri is relative to the current module.
protected  voidprocessForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward)
     Overloaded method from Struts' RequestProcessor. Forward or redirect to the specified destination by the specified mechanism. This method catches the Struts' actionForward call.
protected  booleanprocessTilesDefinition(String definitionName, boolean contextRelative, HttpServletRequest request, HttpServletResponse response)
     Process a Tile definition name. This method tries to process the parameter definitionName as a definition name. It returns true if a definition has been processed, or false otherwise. This method is deprecated; the method without the contextRelative parameter should be used instead.
Parameters:
  definitionName - Definition name to insert.
Parameters:
  contextRelative - Is the definition marked contextRelative ?
Parameters:
  request - Current page request.
Parameters:
  response - Current page response.
protected  booleanprocessTilesDefinition(String definitionName, HttpServletRequest request, HttpServletResponse response)
     Process a Tile definition name. This method tries to process the parameter definitionName as a definition name. It returns true if a definition has been processed, or false otherwise.
Parameters:
  definitionName - Definition name to insert.
Parameters:
  request - Current page request.
Parameters:
  response - Current page response.

Field Detail
definitionsFactory
protected DefinitionsFactory definitionsFactory(Code)
Definitions factory.



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





Method Detail
doForward
protected void doForward(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)
Do a forward using request dispatcher. Uri is a valid uri. If response has already been commited, do an include instead.
Parameters:
  uri - Uri or Definition name to forward.
Parameters:
  request - Current page request.
Parameters:
  response - Current page response.



getDefinitionsFactory
public DefinitionsFactory getDefinitionsFactory()(Code)
Get associated definition factory.



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 occurs during initialization.



initDefinitionsMapping
protected void initDefinitionsMapping() throws ServletException(Code)
Read component instance mapping configuration file. This is where we read files properties.



internalModuleRelativeForward
protected void internalModuleRelativeForward(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)
Catch the call to a module relative forward. If the specified uri is a tiles definition name, insert it. Otherwise, parent processing is called. Do a module relative forward to specified uri using request dispatcher. Uri is relative to the current module. The real uri is computed by prefixing the module name. This method is used internally and is not part of the public API. It is advised to not use it in subclasses.
Parameters:
  uri - Module-relative URI to forward to.
Parameters:
  request - Current page request.
Parameters:
  response - Current page response.
since:
   Struts 1.1



internalModuleRelativeInclude
protected void internalModuleRelativeInclude(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)
Do a module relative include to specified uri using request dispatcher. Uri is relative to the current module. The real uri is computed by prefixing the module name. This method is used internally and is not part of the public API. It is advised to not use it in subclasses.
Parameters:
  uri - Module-relative URI to forward to.
Parameters:
  request - Current page request.
Parameters:
  response - Current page response.
since:
   Struts 1.1



processForwardConfig
protected void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) throws IOException, ServletException(Code)
Overloaded method from Struts' RequestProcessor. Forward or redirect to the specified destination by the specified mechanism. This method catches the Struts' actionForward call. It checks if the actionForward is done on a Tiles definition name. If true, process the definition and insert it. If false, call the original parent's method.
Parameters:
  request - The servlet request we are processing.
Parameters:
  response - The servlet response we are creating.
Parameters:
  forward - The ActionForward controlling where we go next.
exception:
  IOException - if an input/output error occurs.
exception:
  ServletException - if a servlet exception occurs.



processTilesDefinition
protected boolean processTilesDefinition(String definitionName, boolean contextRelative, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)
Process a Tile definition name. This method tries to process the parameter definitionName as a definition name. It returns true if a definition has been processed, or false otherwise. This method is deprecated; the method without the contextRelative parameter should be used instead.
Parameters:
  definitionName - Definition name to insert.
Parameters:
  contextRelative - Is the definition marked contextRelative ?
Parameters:
  request - Current page request.
Parameters:
  response - Current page response. true if the method has processed uri as adefinition name, false otherwise.



processTilesDefinition
protected boolean processTilesDefinition(String definitionName, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)
Process a Tile definition name. This method tries to process the parameter definitionName as a definition name. It returns true if a definition has been processed, or false otherwise.
Parameters:
  definitionName - Definition name to insert.
Parameters:
  request - Current page request.
Parameters:
  response - Current page response. true if the method has processed uri as adefinition name, false otherwise.



Fields inherited from org.apache.struts.action.RequestProcessor
final public static String INCLUDE_PATH_INFO(Code)(Java Doc)
final public static String INCLUDE_SERVLET_PATH(Code)(Java Doc)
protected HashMap actions(Code)(Java Doc)
protected static Log log(Code)(Java Doc)
protected ModuleConfig moduleConfig(Code)(Java Doc)
protected ActionServlet servlet(Code)(Java Doc)

Methods inherited from org.apache.struts.action.RequestProcessor
public void destroy()(Code)(Java Doc)
protected void doForward(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc)
protected void doInclude(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc)
protected MessageResources getInternal()(Code)(Java Doc)
protected ServletContext getServletContext()(Code)(Java Doc)
public void init(ActionServlet servlet, ModuleConfig moduleConfig) throws ServletException(Code)(Java Doc)
protected void internalModuleRelativeForward(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc)
protected void internalModuleRelativeInclude(String uri, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc)
public void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc)
protected Action processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException(Code)(Java Doc)
protected ActionForm processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)(Code)(Java Doc)
protected ActionForward processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc)
protected void processCachedMessages(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)
protected void processContent(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)
protected ActionForward processException(HttpServletRequest request, HttpServletResponse response, Exception exception, ActionForm form, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc)
protected boolean processForward(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc)
protected void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) throws IOException, ServletException(Code)(Java Doc)
protected boolean processInclude(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc)
protected void processLocale(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)
protected ActionMapping processMapping(HttpServletRequest request, HttpServletResponse response, String path) throws IOException(Code)(Java Doc)
protected HttpServletRequest processMultipart(HttpServletRequest request)(Code)(Java Doc)
protected void processNoCache(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)
protected String processPath(HttpServletRequest request, HttpServletResponse response) throws IOException(Code)(Java Doc)
protected void processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws ServletException(Code)(Java Doc)
protected boolean processPreprocess(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc)
protected boolean processRoles(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc)
protected boolean processValidate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws IOException, ServletException, InvalidCancelException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.