Hi

Ah thanks. I assume its a SortTerm builder. As the code you show is
about search terms.

Btw for search terms, you can use the search.XXX prefix in the uri to
build that also a bit easier for some simpler cases.

See bottom of page
http://camel.apache.org/mail.html

On Fri, Mar 27, 2015 at 12:40 PM, camelvev <ca...@vevang.no> wrote:
> Hi,
>
> Thanks a lot Claus. In addition, if someone else is wondering about
> this, I managed to solve the issue (with some help from a nice
> colleague) by creating a factoryBean that returns a SortTerm[]:
>
> public class IMAPsearchTermFactory {
>
>   public static SearchTerm create() {
>
>   SearchTermBuilder builder = new SearchTermBuilder();
>   builder.unseen().subject(SearchTermBuilder.Op.or, "Some
> subject").subject(SearchTermBuilder.Op.or, "Some other subject");
>   return builder.build();
>   }
> }
>
> and then in the XML
>
> <bean id="searchTerm"
> class="no.ngt.tech.b2b.vulaparser.util.IMAPsearchTermFactory"
> factory-method="create"/>
>
> ...which can then be referenced in the URI as #searchTerm.
>
> BR,
> ؘyvind
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/SortTerm-in-Spring-XML-tp5764866p5764904.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to