Spring Web Services Framework

org.springframework.ws.transport.http
Class WebServiceMessageReceiverHandlerAdapter

java.lang.Object
  extended by org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
      extended by org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter
All Implemented Interfaces:
InitializingBean, HandlerAdapter

public class WebServiceMessageReceiverHandlerAdapter
extends WebServiceMessageReceiverObjectSupport
implements HandlerAdapter

Adapter to use the WebServiceMessageReceiver interface with the generic DispatcherServlet. Requires a WebServiceMessageFactory which is used to convert the incoming HttpServletRequest into a WebServiceMessage, and passes that context to the mapped WebServiceMessageReceiver. If a response is created, that is sent via the HttpServletResponse.

Note that the MessageDispatcher implements the WebServiceMessageReceiver interface, enabling this adapter to function as a gateway to further message handling logic.

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
WebServiceMessageReceiverObjectSupport.setMessageFactory(org.springframework.ws.WebServiceMessageFactory), WebServiceMessageReceiver, WebServiceMessageFactory, MessageDispatcher

Field Summary
 
Fields inherited from class org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
logger
 
Constructor Summary
WebServiceMessageReceiverHandlerAdapter()
           
 
Method Summary
 long getLastModified(HttpServletRequest request, Object handler)
           
 ModelAndView handle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object handler)
           
 boolean supports(Object handler)
           
 
Methods inherited from class org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
afterPropertiesSet, getMessageFactory, handleConnection, setMessageFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceMessageReceiverHandlerAdapter

public WebServiceMessageReceiverHandlerAdapter()
Method Detail

getLastModified

public long getLastModified(HttpServletRequest request,
                            Object handler)
Specified by:
getLastModified in interface HandlerAdapter

handle

public ModelAndView handle(HttpServletRequest httpServletRequest,
                           HttpServletResponse httpServletResponse,
                           Object handler)
                    throws Exception
Specified by:
handle in interface HandlerAdapter
Throws:
Exception

supports

public boolean supports(Object handler)
Specified by:
supports in interface HandlerAdapter

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.