camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murari Raghavan <murari.ragha...@gmail.com>
Subject Passing arguments to a customer splitter
Date Mon, 20 Aug 2012 14:57:09 GMT
Hello:

Is there a way to pass arguments to a custom splitter? 

For eg - Route Builder calls a custom splitter -
DDSResponseSplitService.splitStatusResponse()

from(routesprops.getString(Constants.INBOUND))
    .split().method(DDSResponseSplitService.class, "splitStatusResponse")
    .process(new Processor() {
              public void process(Exchange exchange) throws Exception {
....

If the splitStatusResponse method accepts a property string xslfilepath, how
can I pass this argument in the call to the splitter method -
.split().method(DDSResponseSplitService.class, "splitStatusResponse")?
 
public List<String> splitStatusResponse(String ddsresponse, String
xslfilepath) throws Exception {

}

Thanks,
Murari




--
View this message in context: http://camel.465427.n5.nabble.com/Passing-arguments-to-a-customer-splitter-tp5717719.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message