[
https://issues.apache.org/jira/browse/STANBOL-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116696#comment-13116696
]
Reto Bachmann-Gmür commented on STANBOL-313:
--------------------------------------------
The proposed patch is ideal for the subset of URIs which name a specific
sequence of bytes at least at a determined point in time. For some resources
that are content-negotiable the value of the Content-Location header of the
response is a URI belonging to this subset. However the patch is a simple
utility implementation of ContentItem inheriting its identity conditions so
there is nothing to prevent having multiple different (i.e. equals returning
false) WebContentItems with the same ID (Uri) and possibly different contents.
I think there's a lot of room for improvement having a more powerful notion of
resource rather than the current ContentItem, my patch didn't mean to address
this broader field.
> Create WebContentItem
> ---------------------
>
> Key: STANBOL-313
> URL: https://issues.apache.org/jira/browse/STANBOL-313
> Project: Stanbol
> Issue Type: Improvement
> Reporter: Reto Bachmann-Gmür
> Assignee: Rupert Westenthaler
> Attachments: STANBOL-313-enhancer.patch
>
>
> Add a class implementing ContentItem with a constructor taking the URI of a
> dereferenceable resource. The class might cache the content or get the stream
> from remote. The class could be used for example in
> ContentHubRootResource.createContentItemFromForm but it seems like a generic
> implementationof ContentItem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira