Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Web Simple Provider should also provide a Java API for resource resolution #86

@eliasvasylenko

Description

@eliasvasylenko

Sometimes a web application may wish to access resources provided through osgi.enroute.web.simple.provider directly in Java code for e.g. server-side rendering using nashorn. Currently afaict the only way to do this is to reimplement or hook-into the WebresourceServlet, or to resolve indirectly through the web server via URL which imo is unnecessarily complex and requires a little extra information.

It would be nice if there were a prototype-scoped service which provided all the resources available to a bundle via some sort of simple getWebResource(String glob) method.

If you agree this would be useful I'd be more than happy to PR.

Edit: I'm aware that there's a RFC and RFP for this but they look very early stages so I assume this is still a relevant reference for them and place to explore design...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions