THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Browse Component
Available as of Camel 2.0
The Browse component provides a simple BrowsableEndpoint which can be useful for testing, visualisation tools or debugging. The exchanges sent to the endpoint are all available to be browsed.
...
Code Block |
---|
browse:someName[?options]
|
Where someName can be any string to uniquely identify the endpoint.
...
Code Block | ||||
---|---|---|---|---|
| ||||
private CamelContext context; public void inspectRecievedOrders() { BrowsableEndpoint browse = context.getEndpoint("browse:orderReceived", BrowsableEndpoint.class); List<Exchange> exchanges = browse.getExchanges(); ... // then we can inspect the list of received exchanges from Java for (Exchange exchange : exchanges) { String payload = exchange.getIn().getBody(); ... } } |
Include Page | ||||
---|---|---|---|---|
|