[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] Question about custom HttpContext (Followup on Bug 287033)

Hi,

I started playing around with the HttpContext and how to implement / optimize it for my own needs. But I'm stuck on a similar question like asked on this thread:

http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg02525.html

But I don't really get the point on how I can access resource contributions that are made outside of the bundle where I implemented the context in.

e.g.

<extension point="org.eclipse.equinox.http.registry.resources">
<resource alias="/bootstrap/config.properties" base-name="resources/bootstrap/config.properties" httpcontextId="com.foo.bar.httpContextId" />
<resource alias="/bootstrap/include" base-name="resources/bootstrap/include" httpcontextId="com.foo.bar.httpContextId" />


As far as I can tell, most of it is internal API stuff. There is special logic inside of equinox for the default registry.

Regards

Oliver

Gunnar Wagenknecht wrote:
Oliver, as a workaround, can you try defining your own HttpContext extension
(extension point "org.eclipse.equinox.http.registry.httpcontexts") and
reference this in the resource registrations? You can then provide your own
optimized HttpContext implementation which does not call Bundle#findEntries
(if
you don't need that behavior).