Examples of xpath()


Examples of org.apache.camel.builder.xml.Namespaces.xpath()

                Namespaces ns = new Namespaces("c", "http://acme.com/cheese")
                        .add("xsd", "http://www.w3.org/2001/XMLSchema");

                // now lets create an xpath based Message Filter
                from("direct:start").
                        filter(ns.xpath("/c:person[@name='James']", String.class)).
                        to("mock:result");
                // END SNIPPET: example
            }
        };
    }
View Full Code Here

Examples of org.apache.camel.builder.xml.Namespaces.xpath()

                // START SNIPPET: example
                Namespaces ns = new Namespaces("foo", "urn:cheese");

                from("direct:start").
                        unmarshal().string().
                        setHeader("foo", ns.xpath("/foo:person[@name='James']")).
                        filter(ns.xpath("/foo:person[@name='James']")).
                        to("mock:result");
                // END SNIPPET: example
            }
        };
View Full Code Here

Examples of org.apache.camel.builder.xml.Namespaces.xpath()

                Namespaces ns = new Namespaces("foo", "urn:cheese");

                from("direct:start").
                        unmarshal().string().
                        setHeader("foo", ns.xpath("/foo:person[@name='James']")).
                        filter(ns.xpath("/foo:person[@name='James']")).
                        to("mock:result");
                // END SNIPPET: example
            }
        };
    }
View Full Code Here

Examples of org.apache.camel.builder.xml.Namespaces.xpath()

                Namespaces ns = new Namespaces("c", "http://acme.com/cheese")
                        .add("xsd", "http://www.w3.org/2001/XMLSchema");

                // now lets create an xpath based Message Filter
                from("direct:start").
                        filter(ns.xpath("/c:person[@name='James']", String.class)).
                        to("mock:result");
                // END SNIPPET: example
            }
        };
    }
View Full Code Here

Examples of org.apache.camel.builder.xml.Namespaces.xpath()

                // START SNIPPET: example
                Namespaces ns = new Namespaces("foo", "urn:cheese");

                from("direct:start").
                        unmarshal().string().
                        setHeader("foo", ns.xpath("/foo:person[@name='James']")).
                        filter(ns.xpath("/foo:person[@name='James']")).
                        to("mock:result");
                // END SNIPPET: example
            }
        };
View Full Code Here

Examples of org.apache.camel.builder.xml.Namespaces.xpath()

                Namespaces ns = new Namespaces("foo", "urn:cheese");

                from("direct:start").
                        unmarshal().string().
                        setHeader("foo", ns.xpath("/foo:person[@name='James']")).
                        filter(ns.xpath("/foo:person[@name='James']")).
                        to("mock:result");
                // END SNIPPET: example
            }
        };
    }
View Full Code Here

Examples of org.apache.camel.builder.xml.Namespaces.xpath()

                Namespaces ns = new Namespaces("c", "http://acme.com/cheese")
                        .add("xsd", "http://www.w3.org/2001/XMLSchema");

                // now lets create an xpath based Message Filter
                from("direct:start").
                        filter(ns.xpath("/c:person[@name='James']")).
                        to("mock:result");
                // END SNIPPET: example
            }
        };
    }
View Full Code Here

Examples of org.apache.camel.builder.xml.Namespaces.xpath()

        context.getRouteDefinition("encrypt")
            .adviceWith(context, new AdviceWithRouteBuilder() {
                @Override
                public void configure() throws Exception {
                    interceptSendToEndpoint("direct:decrypt")
                        .when(namespaces.xpath(cityExistsXPath))
                            .to("mock:incorrectlyEncrypted");
                }
            });
        context.getRouteDefinition("decrypt")
            .adviceWith(context, new AdviceWithRouteBuilder() {
View Full Code Here

Examples of org.apache.camel.builder.xml.Namespaces.xpath()

        context.getRouteDefinition("decrypt")
            .adviceWith(context, new AdviceWithRouteBuilder() {
                @Override
                public void configure() throws Exception {
                    interceptSendToEndpoint("mock:out")
                        .when(namespaces.xpath(cityExistsXPath))
                            .to("mock:correctlyDecrypted");
                }
            });
        context.start();
View Full Code Here

Examples of org.apache.camel.builder.xml.Namespaces.xpath()

        context.getRouteDefinition("encrypt")
            .adviceWith(context, new AdviceWithRouteBuilder() {
                @Override
                public void configure() throws Exception {
                    interceptSendToEndpoint("direct:decrypt")
                        .when(namespaces.xpath(cityExistsXPath))
                            .to("mock:incorrectlyEncrypted");
                }
            });
        context.getRouteDefinition("decrypt")
            .adviceWith(context, new AdviceWithRouteBuilder() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.