camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henryk Konsek <hekon...@gmail.com>
Subject Re: Access to LDAP search results
Date Tue, 07 Aug 2012 09:24:59 GMT
Hi Lars,

> The result from an LDAP search (using camel-ldap) is of type
> ArrayList<javax.naming.directory.SearchResult>. Is it possible to "explore"
> the result, without using Java, e.g. access via "simple" or some other
> script language?

My Camel snippet-language of choice is Groovy [1]. For example to read
the size of the first returned results:

from("ldap://...").transform().groovy("request.body[0].attributes.size()").to("mock:test")

[1] http://camel.apache.org/groovy.html

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com

Mime
View raw message