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


org.springframework.web.portlet.HandlerAdapter

All known Subclasses:   org.springframework.web.portlet.mvc.SimpleControllerHandlerAdapter,  org.springframework.web.portlet.handler.SimplePortletHandlerAdapter,
HandlerAdapter
public interface HandlerAdapter (Code)
Portlet MVC framework SPI interface, allowing parameterization of core MVC workflow.

Interface that must be implemented for each handler type to handle a request. This interface is used to allow the DispatcherPortlet to be indefinitely extensible. The DispatcherPortlet accesses all installed handlers through this interface, meaning that it does not contain code specific to any handler type.

Note that a handler can be of type Object. This is to enable handlers from other frameworks to be integrated with this framework without custom coding.

This interface is not intended for application developers. It is available to handlers who want to develop their own web workflow.

Note: Implementations can implement the Ordered interface to be able to specify a sorting order and thus a priority for getting applied by DispatcherPortlet. Non-Ordered instances get treated as lowest priority.
author:
   John A. Lewis
since:
   2.0
See Also:   org.springframework.web.portlet.mvc.SimpleControllerHandlerAdapter





Method Summary
 voidhandleAction(ActionRequest request, ActionResponse response, Object handler)
     Use the given handler to handle this action request. The workflow that is required may vary widely.
Parameters:
  request - current action request
Parameters:
  response - current action response
Parameters:
  handler - handler to use.
 ModelAndViewhandleRender(RenderRequest request, RenderResponse response, Object handler)
     Use the given handler to handle this render request. The workflow that is required may vary widely.
Parameters:
  request - current render request
Parameters:
  response - current render response
Parameters:
  handler - handler to use.
 booleansupports(Object handler)
     Given a handler instance, return whether or not this HandlerAdapter can support it.



Method Detail
handleAction
void handleAction(ActionRequest request, ActionResponse response, Object handler) throws Exception(Code)
Use the given handler to handle this action request. The workflow that is required may vary widely.
Parameters:
  request - current action request
Parameters:
  response - current action response
Parameters:
  handler - handler to use. This object must have previously been passedto the supports method of this interface, which must havereturned true.
throws:
  Exception - in case of errors



handleRender
ModelAndView handleRender(RenderRequest request, RenderResponse response, Object handler) throws Exception(Code)
Use the given handler to handle this render request. The workflow that is required may vary widely.
Parameters:
  request - current render request
Parameters:
  response - current render response
Parameters:
  handler - handler to use. This object must have previously been passedto the supports method of this interface, which must havereturned true.
throws:
  Exception - in case of errors ModelAndView object with the name of the view and the requiredmodel data, or null if the request has been handled directly



supports
boolean supports(Object handler)(Code)
Given a handler instance, return whether or not this HandlerAdapter can support it. Typical HandlerAdapters will base the decision on the handler type. HandlerAdapters will usually only support one handler type each.

A typical implementation:

return (handler instanceof MyHandler);
Parameters:
  handler - handler object to check whether or not this object can use the given handler




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