How to get access to HttpServletRequest and HttpServletResponse

Talend ESB Mediation Developer Guide

EnrichVersion
6.2
EnrichProdName
Talend ESB
task
Installation and Upgrade
Design and Development
EnrichPlatform
Talend ESB

You can get access to these two using the Camel type converter system using NOTE You can get the request and response not just from the processor after the camel-jetty or camel-cxf endpoint.

HttpServletRequest request = exchange.getIn().getBody(
   HttpServletRequest.class);
HttpServletRequest response = 
   exchange.getIn().getBody(HttpServletResponse.class);