You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2005/11/29 16:29:33 UTC
[jira] Closed: (FELIX-6) Re-implement URL Handlers service
[ http://issues.apache.org/jira/browse/FELIX-6?page=all ]
Richard S. Hall closed FELIX-6:
-------------------------------
Resolution: Fixed
The major functionality of this issue has been implemented, i.e., URL Handlers has been rewritten and included in the core framework. Two issues remain: integration with built-in handlers and security. This issue will be closed and two new issues will be opened for these remaining issues.
> Re-implement URL Handlers service
> ---------------------------------
>
> Key: FELIX-6
> URL: http://issues.apache.org/jira/browse/FELIX-6
> Project: Felix
> Type: Improvement
> Components: Specification compliance, Framework
> Reporter: Richard S. Hall
> Assignee: Richard S. Hall
>
> The URL Handlers service was previously distributed as a separate bundle in Oscar, but this approach is infeasible due to changes in the spec as well as changes in the framework implementation itself to support ClassLoader.getResources().
> In short, the R4 spec says that it must be possible to create resource URLs from strings, thus this requires that the framework register a stream handler factory. Further, to support access to resources inside embedded JAR files inside a bundle JAR file for ClassLoader.getResources(), it is necessary to encode in the returned URL which embedded JAR the resource is in, e.g.:
> http://<bundle-id>/<embedded-jar>/<path-to-resource>
> The framework already extracts the embedded JAR files for more efficient access and no other bundles can access the extracted embedded JAR files in the bundle cache, so it makes sense that only the framework can implement this efficiently.
> So, URL Handlers service should be implemented by the framework, however, there should be a property that enables/disables the setting of the URL stream handler factory, because some applications that will embed Felix may not want this set since it is a singleton. If this is disabled, though, it will not be spec compliant and it will not be possible to create resource URLs from strings (which is how R3 worked).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira