| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <templates><template autoinsert="true" context="xml_all" deleted="false" description="Creates an Aggregator" enabled="true" name="camel_aggregator"><route> |
| <from uri="from_uri"/> |
| <aggregator> |
| <header>cheese</header> |
| <to uri="to_uri"/> |
| </aggregator> |
| </route> |
| </template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Content Based Router" enabled="true" name="camel_cbr"><route> |
| <from uri="from_uri"/> |
| <choice> |
| <when> |
| <xpath>$$foo = 'bar'</xpath> |
| <to uri="when_uri"/> |
| </when> |
| <when> |
| <xpath>$$foo = 'cheese'</xpath> |
| <to uri="when2_uri"/> |
| </when> |
| <otherwise> |
| <to uri="otherwise_uri"/> |
| </otherwise> |
| </choice> |
| </route></template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Delayer" enabled="true" name="camel_delayer"><route> |
| <from uri="from_uri"/> |
| <delayer> |
| <expression/> |
| <delay>delay_in_milliseconds</delay> |
| <to uri="to_uri"/> |
| </delayer> |
| </route> |
| </template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Message Filter allows you to filter messages." enabled="true" name="camel_filter"><route> |
| <from uri="from_uri"/> |
| <filter> |
| <xpath>/person[@name='${user}']</xpath> |
| <to uri="to_uri"/> |
| </filter> |
| </route> |
| </template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Load Balancer with a round robin strategy" enabled="true" name="camel_loadbalancer_roundrobin"><route> |
| <from uri="from_uri"/> |
| <loadBalance> |
| <roundRobin/> |
| <to uri="to_uri"/> |
| <to uri="2nd_to_uri"/> |
| <to uri="3rd_to_uri"/> |
| </loadBalance> |
| </route> |
| </template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Multicast" enabled="true" name="camel_multicast"><route> |
| <from uri="from_uri"/> |
| <multicast> |
| <to uri="to_uri"/> |
| <to uri="2nd_to_uri"/> |
| <to uri="3rd_to_uri"/> |
| </multicast> |
| </route> |
| </template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Pipeline whereby a message will be routed through a series of endpoints." enabled="true" name="camel_pipeline"><route> |
| <from uri="from_uri"/> |
| <to uri="to_uri"/> |
| <to uri="2nd_to_uri"/> |
| <to uri="3rd_to_uri"/> |
| </route> |
| </template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Dynamic Recipient List" enabled="true" name="camel_recipientlist"><route> |
| <from uri="from_uri"/> |
| <recipientList> |
| <header>foo</header> |
| </recipientList> |
| </route> |
| </template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Resequencer" enabled="true" name="camel_resequencer"><route> |
| <from uri="from_uri" /> |
| <resequencer> |
| <simple>body</simple> |
| <to uri="to_uri" /> |
| </resequencer> |
| </route> |
| </template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Routing Slip with the specified header containing the list of URIs." enabled="true" name="camel_routingslip"><route> |
| <from uri="from_uri"/> |
| <routingSlip headerName="slip_header_name" uriDelimiter="uri_delimiter"/> |
| </route> |
| </template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Splitter" enabled="true" name="camel_splitter"><route> |
| <from uri="from_uri"/> |
| <splitter> |
| <xpath>//foo/bar</xpath> |
| <to uri="to_uri"/> |
| </splitter> |
| </route> |
| </template><template autoinsert="true" context="xml_all" deleted="false" description="Creates a Throttler" enabled="true" name="camel_throttler"><route> |
| <from uri="from_uri" /> |
| <throttler maximumRequestsPerPeriod="number_of_messages" timePeriodMillis="milliseconds"> |
| <to uri="to_uri" /> |
| </throttler> |
| </route> |
| </template></templates> |