-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path04-FilteringUsingHeaders.xml
25 lines (21 loc) · 1.09 KB
/
04-FilteringUsingHeaders.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<camelContext xmlns="http://camel.apache.org/schema/blueprint"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ebucore="http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#">
<route id="thumbnailRouter">
<from uri="activemq:topic:fedora"/>
<filter>
<simple>
${header[org.fcrepo.jms.eventType]} != 'http://fedora.info/definitions/v4/repository#NODE_REMOVED' &&
${header[org.fcrepo.jms.properties]} contains 'http://fedora.info/definitions/v4/repository#hasContent'
</simple>
<log message="Got an upsert event with content!"/>
</filter>
</route>
</camelContext>
</blueprint>