Java Doc for IRequestCycleProcessor.java in  » J2EE » wicket » org » apache » wicket » request » 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 » wicket » org.apache.wicket.request 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.wicket.request.IRequestCycleProcessor

All known Subclasses:   org.apache.wicket.request.AbstractRequestCycleProcessor,
IRequestCycleProcessor
public interface IRequestCycleProcessor (Code)

The request cycle processor is responsible for handling the steps of a request cycle. It's methods are called in a pre-defined order:

  • IRequestCycleProcessor.resolve(RequestCycle,RequestParameters) is called to get the request target. A request might refer to e.g. a bookmarkable page, a listener interface call on a component on a previously rendered page, a shared resource or e.g. a non-wicket resource that resides in the web application folder.
  • IRequestCycleProcessor.processEvents(RequestCycle) is called after the target is resolved. It is meant to handle/ distribute events like e.g. listener interface calls on components. During this processing, the request target may be changed (e.g. by calling setResponsePage). What actually happens is that org.apache.wicket.RequestCycle holds a stack of targets, of which it will take to last addition as the recent one, but walks the whole stack in order to do cleaning up after the request is handled.
  • IRequestCycleProcessor.respond(RequestCycle) is called to create a response to the requesting client. Typically, the actual response handling is to be (or delegated) by the request target implementation, but different strategies might do as they seem fit.
  • IRequestCycleProcessor.respond(RuntimeException,RequestCycle) is called whenever an uncaught exception occurs during the event handling or response phase so that an appropriate exception response can be generated. This method is guaranteed to be called whenever such an exception happens, but will never be called otherwise.


See Also:   AbstractRequestCycleProcessor
See Also:   WebRequestCycleProcessor
author:
   hillenius




Method Summary
 IRequestCodingStrategygetRequestCodingStrategy()
     Gets the object that is responsible for encoding request targets (like url's in links etc) and decoding urls and request parameters etc into org.apache.wicket.request.RequestParameters objects.
 voidprocessEvents(RequestCycle requestCycle)
     After a page is restored, this method is responsible for calling any event handling code based on the request.
 IRequestTargetresolve(RequestCycle requestCycle, RequestParameters requestParameters)
    

Resolves the request and returns the request target.

 voidrespond(RequestCycle requestCycle)
     After the target is resolved and the request events are handled, it is time to respond to the request.
 voidrespond(RuntimeException e, RequestCycle requestCycle)
     Whenever a unhandled exception is encountered during the processing of a request cycle, this method is called to respond to the request in a proper way.



Method Detail
getRequestCodingStrategy
IRequestCodingStrategy getRequestCodingStrategy()(Code)
Gets the object that is responsible for encoding request targets (like url's in links etc) and decoding urls and request parameters etc into org.apache.wicket.request.RequestParameters objects. the request encoder



processEvents
void processEvents(RequestCycle requestCycle)(Code)
After a page is restored, this method is responsible for calling any event handling code based on the request. For example, when a link is clicked, IRequestCycleProcessor.resolve(RequestCycle,RequestParameters) should return the page that that link resides on, and this method should call the org.apache.wicket.markup.html.link.ILinkListener interface on that component.
Parameters:
  requestCycle - the current request cycle



resolve
IRequestTarget resolve(RequestCycle requestCycle, RequestParameters requestParameters)(Code)

Resolves the request and returns the request target. Typically, the resolver uses the org.apache.wicket.request.RequestParameters object that is passed in.

Implementors of this method should be careful not to mix this code with event handling code; method IRequestCycleProcessor.processEvents(RequestCycle) is meant for that purpose.


Parameters:
  requestCycle - the current request cycle
Parameters:
  requestParameters - The request parameters object as decoded by this processor'sIRequestCodingStrategy. the request target; has to be non-null!



respond
void respond(RequestCycle requestCycle)(Code)
After the target is resolved and the request events are handled, it is time to respond to the request. This method is responsible for executing the proper response sequence given the current request target and response.
Parameters:
  requestCycle - the current request cycle



respond
void respond(RuntimeException e, RequestCycle requestCycle)(Code)
Whenever a unhandled exception is encountered during the processing of a request cycle, this method is called to respond to the request in a proper way.
Parameters:
  e - any unhandled exception
Parameters:
  requestCycle - the current request cycle



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