Package org.apache.camel.model.language

Examples of org.apache.camel.model.language.GroovyExpression


    public void testGroovyFilterXml() throws Exception {
        RoutesType context = new RoutesType();
        RouteType route = context.route();
        route.from("seda:a");
        route.interceptors("interceptor1", "interceptor2");
        route.filter(new GroovyExpression("in.headers.any { h -> h.startsWith('foo') }")).
                to("seda:b");

        List<ProcessorType> list = route.getOutputs();
        assertEquals("Size of list: " + list, 1, list.size());
View Full Code Here


    public void testGroovyFilterXml() throws Exception {
        RoutesType context = new RoutesType();
        RouteType route = context.route();
        route.from("seda:a");
        route.interceptors("interceptor1", "interceptor2");
        route.filter(new GroovyExpression("in.headers.any { h -> h.startsWith('foo') }")).
                to("seda:b");
        route.description("This is a description of the route");
        List<ProcessorType<?>> list = route.getOutputs();
        assertEquals("Size of list: " + list, 1, list.size());
View Full Code Here

     *
     * @param text the expression to be evaluated
     * @return the builder to continue processing the DSL
     */
    public T groovy(String text) {
        return expression(new GroovyExpression(text));
    }
View Full Code Here

     *
     * @param text the expression to be evaluated
     * @return the builder to continue processing the DSL
     */
    public T groovy(String text) {
        return expression(new GroovyExpression(text));
    }
View Full Code Here

    public void testGroovyFilterXml() throws Exception {
        RoutesType context = new RoutesType();
        RouteType route = context.route();
        route.from("seda:a");
        route.interceptors("interceptor1", "interceptor2");
        route.filter(new GroovyExpression("in.headers.any { h -> h.startsWith('foo') }")).
                to("seda:b");

        List<ProcessorType<?>> list = route.getOutputs();
        assertEquals("Size of list: " + list, 1, list.size());
View Full Code Here

     *
     * @param text the expression to be evaluated
     * @return the builder to continue processing the DSL
     */
    public T groovy(String text) {
        return expression(new GroovyExpression(text));
    }
View Full Code Here

    public void testGroovyFilterXml() throws Exception {
        RoutesDefinition context = new RoutesDefinition();
        RouteDefinition route = context.route();
        route.from("seda:a");
        route.filter(new GroovyExpression("in.headers.any { h -> h.startsWith('foo') }")).to("seda:b");
        route.description(null, "This is a description of the route", "en");
        List<ProcessorDefinition> list = route.getOutputs();
        assertEquals("Size of list: " + list, 1, list.size());

        dump(context);
View Full Code Here

    public void testGroovyFilterXml() throws Exception {
        RoutesDefinition context = new RoutesDefinition();
        RouteDefinition route = context.route();
        route.from("seda:a");
        route.filter(new GroovyExpression("in.headers.any { h -> h.startsWith('foo') }")).to("seda:b");
        route.description(null, "This is a description of the route", "en");
        List<?> list = route.getOutputs();
        assertEquals("Size of list: " + list, 1, list.size());

        dump(context);
View Full Code Here

     *
     * @param text the expression to be evaluated
     * @return the builder to continue processing the DSL
     */
    public T groovy(String text) {
        return expression(new GroovyExpression(text));
    }
View Full Code Here

    public void testGroovyFilterXml() throws Exception {
        RoutesDefinition context = new RoutesDefinition();
        RouteDefinition route = context.route();
        route.from("seda:a");
        route.filter(new GroovyExpression("in.headers.any { h -> h.startsWith('foo') }")).to("seda:b");
        route.description(null, "This is a description of the route", "en");
        List<ProcessorDefinition> list = route.getOutputs();
        assertEquals("Size of list: " + list, 1, list.size());

        dump(context);
View Full Code Here

TOP

Related Classes of org.apache.camel.model.language.GroovyExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.