Results 1 to 4 of 4

Thread: RequestMapper in Spring 2.0?

  1. #1
    Join Date
    Sep 2006
    Posts
    100

    Default 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.

  2. #2
    Join Date
    Sep 2006
    Posts
    100

    Default

    I should restate my question. Which jar contains HttpInboundEndpoint class?

  3. #3
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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.

  4. #4
    Join Date
    Jan 2010
    Posts
    124

    Default

    Hi Oleg,
    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.

    Thanks
    again.
    sri

    Quote Originally Posted by oleg.zhurakousky View Post
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •