HttpMessage msg = exchange.getIn(HttpMessage.class); msg.getResponse() https://github.com/apache/camel/blob/master/components/camel-http/src/main/java/org/apache/camel/component/http/HttpMessage.java
On Thu, Mar 5, 2015 at 10:17 AM, John Mac <[email protected]> wrote: > I am connecting 2 urls using the jetty component and using bridging so that > the route behaves like a proxy as described in the cookbook article. > However I want to be able to access the Request and Response objects and I > am unsure how to do this - or how to do it properly. What is the > recommended idiom to achieve this? > > I have added processors in order to be able to get to the exchanges flowing > and it looks like the request is available but I cannot find the response > > > from("jetty:http://localhost:8090/axiom/route").id("Test-http-route") > .streamCaching() > .to("jetty:http://localhost:5050/foo?bridgeEndpoint=true") > .process(inProcessor) > > Thanks in advance for any help > > > > ----- > > Cheers > > John Mac > -- > View this message in context: > http://camel.465427.n5.nabble.com/Gaining-Access-to-the-ServletRequest-and-ServletResponse-when-bridging-http-endpoints-tp5763643.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
