public class BundleHttpContext extends Object implements org.osgi.service.http.HttpContext
ResourcesDescriptor
in the inverse order of the contribution (preserving the ordering imposed by extension mechanism)
A BundleHttpContext is created for every declated servlet when it is registered against to HttpService. The context is removed when the servlet is unregistered.
| Constructor and Description |
|---|
BundleHttpContext(org.osgi.framework.Bundle bundle,
String resourcesPath) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMimeType(String name) |
URL |
getResource(String name) |
boolean |
handleSecurity(HttpServletRequest request,
HttpServletResponse response) |
void |
setResources(ResourcesDescriptor[] resources) |
public BundleHttpContext(org.osgi.framework.Bundle bundle,
String resourcesPath)
public void setResources(ResourcesDescriptor[] resources)
public String getMimeType(String name)
getMimeType in interface org.osgi.service.http.HttpContextpublic URL getResource(String name)
getResource in interface org.osgi.service.http.HttpContextpublic boolean handleSecurity(HttpServletRequest request, HttpServletResponse response) throws IOException
handleSecurity in interface org.osgi.service.http.HttpContextIOExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.