[
https://issues.apache.org/jira/browse/UIMA-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973301#action_12973301
]
Marshall Schor commented on UIMA-1969:
--------------------------------------
There are two impls of DataResource interface.
* ConfigurableDataResource_impl
* DataResource_impl
Both are initialized with a ResourceSpecifier, an instance of:
* ConfigurableDataResource_impl -- ConfigurableDataResourceSpecifier
* DataResource_impl - FileResourceSpecifier
Neither of these specifiers actually requires that the URL be a file.
DataResource_impl first attempts to create the URL from the spec; only if that
fails does it attempt to construct a URL based on treating the spec as a file.
The ConfigurableDataResource_impl does the same thing, but doesn't attempt to
construct a URL based on treating the spec as a file name.
So - this might work already, and maybe the Javadocs need to be fixed?
> Add support for external resources hosted on an http server
> -----------------------------------------------------------
>
> Key: UIMA-1969
> URL: https://issues.apache.org/jira/browse/UIMA-1969
> Project: UIMA
> Issue Type: New Feature
> Components: Core Java Framework
> Affects Versions: 2.3.1SDK
> Reporter: Jörn Kottmann
>
> Currently external resources for an Analysis Engine can only be loaded from
> the file system. This is useful
> for many use cases in which the resources are almost static and rarely
> change. In our scenario the resources
> are updated frequently and hosted on a central server. The server could
> expose a file system over the network
> via NFS or windows file sharing, but it seems to be more intuitiv and easier
> to just distribute the resources via http.
> In order to do that the resource loading must be extended to also support
> resource which are available via
> http. It seems that the current code for the file URLs can be easily extended
> to also allow http resources.
> According to the documentation it uses URL.openStream and forbids http URLs
> which would be supported
> by that method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.