You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by helander <le...@gmail.com> on 2012/08/06 21:14:34 UTC
Access to LDAP search results
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?
Thanks
Lars
--
View this message in context: http://camel.465427.n5.nabble.com/Access-to-LDAP-search-results-tp5716883.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Access to LDAP search results
Posted by helander <le...@gmail.com>.
Hi Henryk,
thank you very much for the provided example.
/Lars
--
View this message in context: http://camel.465427.n5.nabble.com/Access-to-LDAP-search-results-tp5716883p5716914.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Access to LDAP search results
Posted by Henryk Konsek <he...@gmail.com>.
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
Re: Access to LDAP search results
Posted by Christian Müller <ch...@gmail.com>.
In general, yes. Have a look at the supported scripting languages...
Best,
Christian
Sent from a mobile device
Am 06.08.2012 21:15 schrieb "helander" <le...@gmail.com>:
> 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?
>
> Thanks
>
> Lars
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Access-to-LDAP-search-results-tp5716883.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>