Skip to content

Instantly share code, notes, and snippets.

@daniel-dgi
Last active October 7, 2015 03:19
Show Gist options
  • Save daniel-dgi/85d270cd3a664787b444 to your computer and use it in GitHub Desktop.
Save daniel-dgi/85d270cd3a664787b444 to your computer and use it in GitHub Desktop.
<?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">
<!-- component-wide configuration of fcrepo -->
<bean id="fcrepo" class="org.fcrepo.camel.FcrepoComponent">
<property name="authUsername" value="fedoraAdmin"/>
<property name="authPassword" value="secret3"/>
</bean>
<camelContext id="putTest" xmlns="http://camel.apache.org/schema/blueprint">
<route id="putFile">
<from uri="file:/home/vagrant/watch"/>
<removeHeaders pattern="*"/>
<setHeader headerName="CamelHttpMethod"><constant>PUT</constant></setHeader>
<setHeader headerName="Content-Type"><constant>image/png</constant></setHeader>
<to uri="fcrepo:localhost:8080/fcrepo/rest/watchedFile"/>
</route>
</camelContext>
</blueprint>
@daniel-dgi
Copy link
Author

facepalms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment