List Component
deprecated: is renamed to the Browse component in Camel 2.0
The List component provdes 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 |
---|
|
private CamelContext context;
public void inspectRecievedOrders() {
BrowsableEndpoint browse = context.getEndpoint("list:orderReceived", BrowsableEndpoint.class);
List<Exchange> listexchanges = browse.getExchanges();
...
// then we can inspect the list of received exchanges from Java
for (Exchange exchange : listexchanges) {
String payload = exchange.getIn().getBody();
...
}
}
|
Include Page |
---|
| CAMEL:Endpoint See AlsoCAMEL: |
---|
| Endpoint See Also |
---|
|