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.
| Modifier and Type | Field and Description | 
|---|---|
protected org.osgi.framework.Bundle | 
bundle  | 
protected ResourceResolver | 
resolver  | 
protected ResourcesDescriptor[] | 
resources  | 
| 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(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)  | 
void | 
setResources(ResourcesDescriptor[] resources)  | 
protected org.osgi.framework.Bundle bundle
protected ResourceResolver resolver
protected volatile 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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
handleSecurity in interface org.osgi.service.http.HttpContextIOExceptionCopyright © 2019 Nuxeo. All rights reserved.