Java Doc for ItsNatServletRequestListener.java in  » Ajax » ItsNat » org » itsnat » core » event » 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 » Ajax » ItsNat » org.itsnat.core.event 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.itsnat.core.event.ItsNatServletRequestListener

All known Subclasses:   org.itsnat.feashow.features.core.degraded.NonScriptLoadListener,  org.itsnat.feashow.GlobalItsNatServletRequestListener,  org.itsnat.manual.CompExampleLoadListener,  org.itsnat.feashow.features.core.XMLExampleLoadListener,  org.itsnat.feashow.features.core.degraded.NonAJAXLoadListener,  org.itsnat.feashow.features.core.referrer.ReferrerPushResultListener,  org.itsnat.feashow.features.components.NonScriptAndCompLoadListener,  org.itsnat.manual.CoreExampleLoadListener,  org.itsnat.feashow.features.components.tables.FreeTableSVGLoadListener,  org.itsnat.feashow.features.components.lists.FreeListSVGLoadListener,  org.itsnat.feashow.DocumentLoadListener,  org.itsnat.feashow.features.core.referrer.ReferrerPushListener,  org.itsnat.feashow.features.core.referrer.ReferrerPushResultLoadListener,  org.itsnat.manual.CoreXMLExampleLoadListener,  org.itsnat.feashow.features.core.PrettyURLLoadListener,  org.itsnat.feashow.features.core.SVGInXHTMLLoadListener,  org.itsnat.feashow.features.core.referrer.ReferrerPushLoadListener,  org.itsnat.feashow.features.core.referrer.ReferrerPullLoadListener,  org.itsnat.feashow.features.components.NonAJAXAndCompLoadListener,  org.itsnat.feashow.features.components.xmlcomp.XMLAndCompLoadListener,  org.itsnat.feashow.features.core.referrer.ReferrerPullResultLoadListener,
ItsNatServletRequestListener
public interface ItsNatServletRequestListener (Code)
An object implementing this interface and registered is executed to receive and process ItsNat servlet requests.

This interface is the ItsNat version of the Servlet.service(ServletRequest,ServletResponse) version. When a client request is received the ItsNat servlet converts and routes this request to the registered ItsNatServletRequestListener objects invoking ItsNatServletRequestListener.processRequest(ItsNatServletRequest,ItsNatServletResponse) . A request listener is registered usually calling org.itsnat.core.DocumentTemplate.addItsNatServletRequestListener(ItsNatServletRequestListener) and optionally calling org.itsnat.core.ItsNatServlet.addItsNatServletRequestListener(ItsNatServletRequestListener) (for uses like filtering etc).

Another different use is as ItsNat referrer request listener if registered with org.itsnat.core.ItsNatDocument.addReferrerItsNatServletRequestListener(ItsNatServletRequestListener) . In this case the listener is called when the framework loads a new target document and the referrer document (the document where the listener was registered) is being unloaded and before the target request listeners are executed (referrer push). Request and response objects are the same objects being sent to the normal target request listeners, target document may be modified, new request attributes may be added etc before ItsNat delegates to the normal target loading process.


author:
   Jose Maria Arranz Santamaria




Method Summary
public  voidprocessRequest(ItsNatServletRequest request, ItsNatServletResponse response)
     If this listener is registered this method is invoked when a client request is received.



Method Detail
processRequest
public void processRequest(ItsNatServletRequest request, ItsNatServletResponse response)(Code)
If this listener is registered this method is invoked when a client request is received.

If a new document was requested the org.itsnat.core.ItsNatDocument object is already created using the required template, if the request is an AJAX event the document object is already located, in both cases it may be obtained calling org.itsnat.core.ItsNatServletRequest.getItsNatDocument or org.itsnat.core.ItsNatServletResponse.getItsNatDocument . In this scenario there is no need to use the standard output stream ( ServletResponse.getWriter() or ServletResponse.getOutputStream() ) because ItsNat already uses it behind the scenes. Usual request processing involves DOM tree manipulation or custom JavaScript is sent calling org.itsnat.core.ItsNatDocument.addCodeToSend(Object) .

If no new or existing document is requested the request processing is mostly the same as the typical Servlet.service(ServletRequest,ServletResponse) processing including output to standard output stream. This scenario is an opportunity to change the normal ItsNat document request for instance to implement pretty URLs, because the request may be forwarded again to ItsNat calling org.itsnat.core.ItsNatServlet.processRequest(ServletRequestServletResponse) .


Parameters:
  request - the ItsNat request object.
Parameters:
  response - the ItsNat response object.



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