Search code examples
httprequestmuleinbound

Mule 3.4.0 Get HTTPRequest object from http inbound endpoint


I have an http:inbound-endpoint. Is there any way to get a handle to HttpServletRequest object in a Filter/Interceptor? Is ObjectToHttpClientMethodRequest an answer? If so, could someone please provide a sample?


Solution

  • If you are running Mule in a servlet container, you need to use servlet:inbound-endpoint, not http:inbound-endpoint.

    But even with that, I do not think Mule lets you access the underlying HttpServletRequest...