Oct 20th, 2010, 03:52 PM
RequestMapper in Spring 2.0?
In SI 1.0.4, I successfully implemented HttpInboundEndpoint with a custom 'requestMapper'. However, I am not finding the same in HttpRequestHandlingMessagingGateway in SI 2.0.M7. Could somebody shed light on its implementation in 2.0? Any help with examples would be great.
Thanks in advance.
Oct 20th, 2010, 04:04 PM
I should restate my question. Which jar contains HttpInboundEndpoint class?
Oct 21st, 2010, 10:55 AM
Yes, in 2.0 Http module underwent major refactoring to use Spring 3.0 REST support, so you can now implement HttpMessageConverter and inject it via 'message-converter' property.
Oct 22nd, 2010, 04:50 PM
I need to do some tracking for every request that i send using http:outbound gateway.
The above explanation helps as i was endlessly looking for HttpOutboundEndpoint class in 2.x SI.
I read the RestTemplate and i am using CommonsClientHttpRequestFactory to do my requests.
Is there a way i can inject a ResponseExtractor into my http gateway to return a message or an Object to the reply channel?
The message/Object should contain both the request and the http response code.
Originally Posted by oleg.zhurakousky