Java Doc for MessageDispatcherServlet.java in  » Web-Services » spring-ws-1.0.0 » org » springframework » ws » transport » http » 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 Services » spring ws 1.0.0 » org.springframework.ws.transport.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.ws.transport.http.MessageDispatcherServlet

MessageDispatcherServlet
public class MessageDispatcherServlet extends FrameworkServlet (Code)
Servlet for simplified dispatching of Web service messages.

This servlet is a convenient alternative to the standard Spring-MVC DispatcherServlet with separate WebServiceMessageReceiverHandlerAdapter , MessageDispatcher , and WsdlDefinitionHandlerAdapter instances.

This servlet automatically detects EndpointAdapter EndpointAdapters , EndpointMappingEndpointMappings , and EndpointExceptionResolver EndpointExceptionResolvers by type.

This servlet also automatically detects any WsdlDefinition defined in its application context. This WSDL is exposed under the bean name: for example, a WsdlDefinition bean named 'echo' will be exposed as echo.wsdl in this servlet's context: http://localhost:8080/spring-ws/echo.wsdl. When the transformWsdlLocations init-param is set to true in this servlet's configuration in web.xml, all location attributes in the WSDL definitions will reflect the URL of the incoming request.
author:
   Arjen Poutsma
See Also:   org.springframework.web.servlet.DispatcherServlet
See Also:   org.springframework.ws.server.MessageDispatcher
See Also:   org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter
since:
   1.0.0



Field Summary
final public static  StringDEFAULT_MESSAGE_FACTORY_BEAN_NAME
     Well-known name for the WebServiceMessageFactory bean in the bean factory for this namespace.
final public static  StringDEFAULT_MESSAGE_RECEIVER_BEAN_NAME
     Well-known name for the WebServiceMessageReceiver object in the bean factory for this namespace.

Constructor Summary
public  MessageDispatcherServlet()
     Public constructor, necessary for some Web application servers.

Method Summary
protected  voiddoService(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
    
protected  longgetLastModified(HttpServletRequest httpServletRequest)
    
public  StringgetMessageFactoryBeanName()
     Returns the bean name used to lookup a WebServiceMessageFactory .
protected  WebServiceMessageReceivergetMessageReceiver()
     Returns the WebServiceMessageReceiver used by this servlet.
public  StringgetMessageReceiverBeanName()
     Returns the bean name used to lookup a WebServiceMessageReceiver .
protected  WsdlDefinitiongetWsdlDefinition(HttpServletRequest request)
     Determines the WsdlDefinition for a given request, or null if none is found.
protected  voidinitFrameworkServlet()
    
public  booleanisTransformWsdlLocations()
     Indicates whether relative address locations in the WSDL are to be transformed using the request URI of the incoming HttpServletRequest .
public  voidsetMessageFactoryBeanName(String messageFactoryBeanName)
     Sets the bean name used to lookup a WebServiceMessageFactory .
public  voidsetMessageReceiverBeanName(String messageReceiverBeanName)
     Sets the bean name used to lookup a WebServiceMessageReceiver .
public  voidsetTransformWsdlLocations(boolean transformWsdlLocations)
     Sets whether relative address locations in the WSDL are to be transformed using the request URI of the incoming HttpServletRequest .

Field Detail
DEFAULT_MESSAGE_FACTORY_BEAN_NAME
final public static String DEFAULT_MESSAGE_FACTORY_BEAN_NAME(Code)
Well-known name for the WebServiceMessageFactory bean in the bean factory for this namespace.



DEFAULT_MESSAGE_RECEIVER_BEAN_NAME
final public static String DEFAULT_MESSAGE_RECEIVER_BEAN_NAME(Code)
Well-known name for the WebServiceMessageReceiver object in the bean factory for this namespace.




Constructor Detail
MessageDispatcherServlet
public MessageDispatcherServlet()(Code)
Public constructor, necessary for some Web application servers.




Method Detail
doService
protected void doService(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception(Code)



getLastModified
protected long getLastModified(HttpServletRequest httpServletRequest)(Code)



getMessageFactoryBeanName
public String getMessageFactoryBeanName()(Code)
Returns the bean name used to lookup a WebServiceMessageFactory .



getMessageReceiver
protected WebServiceMessageReceiver getMessageReceiver()(Code)
Returns the WebServiceMessageReceiver used by this servlet.



getMessageReceiverBeanName
public String getMessageReceiverBeanName()(Code)
Returns the bean name used to lookup a WebServiceMessageReceiver .



getWsdlDefinition
protected WsdlDefinition getWsdlDefinition(HttpServletRequest request)(Code)
Determines the WsdlDefinition for a given request, or null if none is found.

Default implementation checks whether the request method is GET, whether the request uri ends with ".wsdl", and if there is a WsdlDefinition with the same name as the filename in the request uri.
Parameters:
  request - the HttpServletRequest a definition, or null




initFrameworkServlet
protected void initFrameworkServlet() throws ServletException, BeansException(Code)



isTransformWsdlLocations
public boolean isTransformWsdlLocations()(Code)
Indicates whether relative address locations in the WSDL are to be transformed using the request URI of the incoming HttpServletRequest .



setMessageFactoryBeanName
public void setMessageFactoryBeanName(String messageFactoryBeanName)(Code)
Sets the bean name used to lookup a WebServiceMessageFactory . Defaults to MessageDispatcherServlet.DEFAULT_MESSAGE_FACTORY_BEAN_NAME .



setMessageReceiverBeanName
public void setMessageReceiverBeanName(String messageReceiverBeanName)(Code)
Sets the bean name used to lookup a WebServiceMessageReceiver . Defaults to MessageDispatcherServlet.DEFAULT_MESSAGE_RECEIVER_BEAN_NAME .



setTransformWsdlLocations
public void setTransformWsdlLocations(boolean transformWsdlLocations)(Code)
Sets whether relative address locations in the WSDL are to be transformed using the request URI of the incoming HttpServletRequest . Defaults to false.



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