Last active
October 7, 2015 03:19
-
-
Save daniel-dgi/85d270cd3a664787b444 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
on line 14 you might want the servlet context to be
fcrepo
and notfrepo