-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- now ISO services are returned as distributions of a dataset and no longer as separate datasets - removed outdated mappings from XSLT - removed unused dependencies and resources - updated dependency versions - many minor fixes
- Loading branch information
1 parent
eca00d0
commit 3044d82
Showing
13 changed files
with
426 additions
and
1,226 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
24 changes: 0 additions & 24 deletions
24
src/main/java/eu/odp/harvest/geo/oai/JsonPackageRequestProcessor.java
This file was deleted.
Oops, something went wrong.
This file contains 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
22 changes: 21 additions & 1 deletion
22
src/main/java/eu/odp/harvest/geo/oai/xslt/HttpAwareUriResolverFactory.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,32 @@ | ||
package eu.odp.harvest.geo.oai.xslt; | ||
|
||
import org.apache.camel.CamelContext; | ||
import org.apache.camel.ProducerTemplate; | ||
import org.apache.camel.component.xslt.XsltUriResolverFactory; | ||
|
||
import javax.xml.transform.URIResolver; | ||
|
||
/** | ||
* Factory class for custom XSLT URI resolver. | ||
*/ | ||
public class HttpAwareUriResolverFactory implements XsltUriResolverFactory { | ||
private ProducerTemplate template; | ||
|
||
/** | ||
* Factory method. | ||
* @param camelContext camel context | ||
* @param resourceUri URI to be resolved | ||
* @return URI resolver | ||
*/ | ||
public URIResolver createUriResolver(CamelContext camelContext, String resourceUri) { | ||
return new HttpAwareUriResolver(camelContext, resourceUri); | ||
return new HttpAwareUriResolver(camelContext, resourceUri, template); | ||
} | ||
|
||
/** | ||
* Sets the producer template. | ||
* @param template producer template | ||
*/ | ||
public void setProducer(ProducerTemplate template) { | ||
this.template = template; | ||
} | ||
} |
Oops, something went wrong.