You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/06/01 09:10:17 UTC
[03/14] camel git commit: Added a test blueprint file
Added a test blueprint file
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c14d4ef7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c14d4ef7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c14d4ef7
Branch: refs/heads/master
Commit: c14d4ef746ab882acbf843168e6bff71561f3759
Parents: ee05713
Author: Mike Kennedy <mi...@ucr.edu>
Authored: Sat May 30 23:46:30 2015 -0700
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Jun 1 08:55:12 2015 +0200
----------------------------------------------------------------------
.../resources/OSGI-INF/blueprint/blueprint.xml | 42 ++++++++++++++++++++
1 file changed, 42 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/c14d4ef7/components/camel-slack/src/main/resources/OSGI-INF/blueprint/blueprint.xml
----------------------------------------------------------------------
diff --git a/components/camel-slack/src/main/resources/OSGI-INF/blueprint/blueprint.xml b/components/camel-slack/src/main/resources/OSGI-INF/blueprint/blueprint.xml
index e69de29..08a6da5 100644
--- a/components/camel-slack/src/main/resources/OSGI-INF/blueprint/blueprint.xml
+++ b/components/camel-slack/src/main/resources/OSGI-INF/blueprint/blueprint.xml
@@ -0,0 +1,42 @@
+<?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.
+-->
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" default-activation="lazy">
+
+ <bean id="slack" class="org.apache.camel.component.slack.SlackComponent">
+ <property name="webhookUrl" value="https://hooks.slack.com/services/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"/>
+ </bean>
+
+ <camelContext xmlns="http://camel.apache.org/schema/blueprint">
+ <onException>
+ <exception>java.lang.Exception</exception>
+ <handled>
+ <constant>true</constant>
+ </handled>
+ <to uri="mock:errors"/>
+ </onException>
+ <route>
+ <from uri="direct:test"/>
+ <to uri="slack:#general?iconEmoji=:camel:&username=CamelTest"/>
+ </route>
+ <route>
+ <from uri="direct:error"/>
+ <to uri="slack:#badchannel?iconEmoji=:camel:&username=CamelTest"/>
+ </route>
+ </camelContext>
+
+</blueprint>