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

added support for dynamic transform endpoints #24

Merged
merged 4 commits into from Dec 19, 2014
Merged

added support for dynamic transform endpoints #24

merged 4 commits into from Dec 19, 2014

Conversation

acoburn
Copy link
Contributor

@acoburn acoburn commented Dec 10, 2014

This allows fcr:transform endpoints to be dynamically created. Instead of using a static definition:

to("fcrepo:localhost:8080/rest?transform=foo")

or configurable properties:

to("fcrepo:localhost:8080/rest?transform={{transform}}")

... both of which require restarting the route in order to change, this would allow routes to set headers dynamically, while still permitting a default fallback:

.setHeader(FCREPO_TRANSFORM)
  .xpath("/rdf:RDF/rdf:Description/indexing:hasIndexingTransform/text()", ns) 
.to("fcrepo:localhost:8080/rest?transform={{defaultTransform}}")

@acoburn
Copy link
Contributor Author

acoburn commented Dec 10, 2014

@awoods
Copy link

awoods commented Dec 11, 2014

@acoburn
Copy link
Contributor Author

acoburn commented Dec 18, 2014

@awoods Your changes have been merged into this PR, and it has been rebased with master.

awoods pushed a commit that referenced this pull request Dec 19, 2014
added support for dynamic transform endpoints
@awoods awoods merged commit df81945 into fcrepo-exts:master Dec 19, 2014
@acoburn acoburn deleted the transform_header branch December 19, 2014 03: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

2 participants