To configure an external PID minter, create a Spring bean configuration file using the HttpPidMinter class, and use a system property to use it instead of the internal PID minter:
-Dfcrepo.minter.config=file:///path/to/minter.xml -Dfcrepo.minter.username=minterUser -Dfcrepo.minter.password=minterPass |
Example minter.xml:
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="http://www.springframework.org/schema/c" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <bean class="org.fcrepo.kernel.identifiers.HttpPidMinter" c:url="http://localhost/my/minter" c:method="POST" c:username="${fcrepo.minter.username:minterUsername}" c:password="${fcrepo.minter.password:minterPassword}" c:regex="" c:xpath="/response/ids/value"/> </beans> |
The properties that can be set are: