Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Pid Minter #353

Closed
wants to merge 16 commits into from
Closed

HTTP Pid Minter #353

wants to merge 16 commits into from

Conversation

escowles
Copy link
Contributor

Adding PID minter implementation that retrieves a PID from a remote REST API service.

  • Supports HTTP Basic auth for connecting to the remote PID minter.
  • Supports processing the minter response using XPath or regular expressions.

Fixes https://www.pivotaltracker.com/story/show/70678050

* Setup authentication in httpclient.
**/
private HttpClient buildClient() {
HttpClientBuilder builder = HttpClientBuilder.create().useSystemProperties();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this pool HTTP clients effectively (for high-rate ingest)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what it does by default. I can add a call to use PoolingHttpClientConnectionManager to be sure it'll pool connections.

… wildcard include, breaking out minter config and making it configurable with system property fcrepo.minter.config
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

<!-- Mints PIDs-->
<bean class="org.fcrepo.kernel.identifiers.UUIDPathMinter"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For ease of use, it may be good to have the configuration for the HttpPidMinter also in this file, but commented out.

@awoods
Copy link

awoods commented May 15, 2014

Resolved with: 4959897

Addresses: https://www.pivotaltracker.com/story/show/70678050

@awoods awoods closed this May 15, 2014
@awoods awoods deleted the http-pid-minter branch May 15, 2014 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants