Package org.openhab.core.io.http
Interface HttpContextFactoryService
public interface HttpContextFactoryService
Create
HttpContext
instances when registering servlets, resources or filters using the
HttpService.registerServlet(java.lang.String, javax.servlet.Servlet, java.util.Dictionary<?, ?>, org.osgi.service.http.HttpContext)
and corresponding methods.- Author:
- Henning Treu - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionorg.osgi.service.http.HttpContext
createDefaultHttpContext
(org.osgi.framework.Bundle bundle) Creates anHttpContext
according to the OSGi specification ofHttpService.createDefaultHttpContext()
.
-
Method Details
-
createDefaultHttpContext
org.osgi.service.http.HttpContext createDefaultHttpContext(org.osgi.framework.Bundle bundle) Creates anHttpContext
according to the OSGi specification ofHttpService.createDefaultHttpContext()
.- Parameters:
bundle
- the bundle which will be used by thisHttpContext
to resolve resources.- Returns:
- the
HttpContext
for the given bundle.
-