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.HttpContextcreateDefaultHttpContext(org.osgi.framework.Bundle bundle) Creates anHttpContextaccording to the OSGi specification ofHttpService.createDefaultHttpContext().
-
Method Details
-
createDefaultHttpContext
org.osgi.service.http.HttpContext createDefaultHttpContext(org.osgi.framework.Bundle bundle) Creates anHttpContextaccording to the OSGi specification ofHttpService.createDefaultHttpContext().- Parameters:
bundle- the bundle which will be used by thisHttpContextto resolve resources.- Returns:
- the
HttpContextfor the given bundle.
-