class WebServiceMessageReceiverHandlerAdapter extends WebServiceMessageReceiverObjectSupport implements HandlerAdapter {

	@Override
	public ModelAndView handle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse,
			Object handler) throws Exception {
		if (HttpTransportConstants.METHOD_POST.equals(httpServletRequest.getMethod())) {
			WebServiceConnection connection = new HttpServletConnection(httpServletRequest, httpServletResponse);
			try {
				handleConnection(connection, (WebServiceMessageReceiver) handler);
			} catch (InvalidXmlException ex) {
				handleInvalidXmlException(httpServletRequest, httpServletResponse, handler, ex);
			}
		} else {
			handleNonPostMethod(httpServletRequest, httpServletResponse, handler);
		}
		return null;
	}

}