Java Doc for HttpRequestHandler.java in  » J2EE » spring-framework-2.5 » org » springframework » web » 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 » spring framework 2.5 » org.springframework.web 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.web.HttpRequestHandler

All known Subclasses:   org.springframework.remoting.caucho.HessianServiceExporter,  org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter,  org.springframework.remoting.caucho.BurlapServiceExporter,
HttpRequestHandler
public interface HttpRequestHandler (Code)
Plain handler interface for components that process HTTP requests, analogous to a Servlet. Only throws ServletException and IOException, to allow for usage within any HttpServlet. Essentially the direct equivalent of an HttpServlet, reduced to a handle method.

The easiest way to expose an HttpRequestHandler bean in Spring style is to define it in Spring's root web application context and define an HttpRequestHandlerServlet in web.xml, pointing at the target HttpRequestHandler bean through its servlet-name which needs to match the target bean name.

Supported as a handler type within Spring's DispatcherServlet, being able to leverage the dispatcher's advanced mapping and interception facilities. This is the recommended way of exposing an HttpRequestHandler, while keeping the handler implementations free of direct dependencies on a DispatcherServlet environment.

Typically implemented to generate binary responses directly, with no separate view resource involved. This differentiates it from a Controller within Spring's Web MVC framework. The lack of a ModelAndView return value gives a clearer signature to callers other than the DispatcherServlet, indicating there will never be a view to render.

As of Spring 2.0, Spring's HTTP-based remote exporters, such as HttpInvokerServiceExporter and HessianServiceExporter, implement this interface rather than the more extensive Controller interface, for minimal dependencies on Spring-specific web infrastructure.

Note that RequestHandlers can optionally implement the LastModified interface, just like Controllers can, provided that they run within Spring's DispatcherServlet.
author:
   Juergen Hoeller
since:
   2.0
See Also:   org.springframework.web.context.support.HttpRequestHandlerServlet
See Also:   org.springframework.web.servlet.DispatcherServlet
See Also:   org.springframework.web.servlet.ModelAndView
See Also:   org.springframework.web.servlet.mvc.Controller
See Also:   org.springframework.web.servlet.mvc.LastModified
See Also:   org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter
See Also:   org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter
See Also:   org.springframework.remoting.caucho.HessianServiceExporter
See Also:   org.springframework.remoting.caucho.BurlapServiceExporter





Method Summary
 voidhandleRequest(HttpServletRequest request, HttpServletResponse response)
     Process the given request, generating a response.



Method Detail
handleRequest
void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)
Process the given request, generating a response.
Parameters:
  request - current HTTP request
Parameters:
  response - current HTTP response
throws:
  ServletException - in case of general errors
throws:
  IOException - in case of I/O errors



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