Class HttpServiceFactory
java.lang.Object
org.apache.felix.http.base.internal.service.HttpServiceFactory
- All Implemented Interfaces:
org.osgi.framework.ServiceFactory<org.osgi.service.http.HttpService>
public final class HttpServiceFactory
extends Object
implements org.osgi.framework.ServiceFactory<org.osgi.service.http.HttpService>
The http service factory
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the context for the http service.static final longThe id of the context for the http service. -
Constructor Summary
ConstructorsConstructorDescriptionHttpServiceFactory(org.osgi.framework.BundleContext bundleContext, HandlerRegistry handlerRegistry) -
Method Summary
Modifier and TypeMethodDescriptionlongorg.osgi.service.http.HttpServicegetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<org.osgi.service.http.HttpService> reg) voidsetAttributeSharedServletContext(String key, Object value) voidvoidstop()voidungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<org.osgi.service.http.HttpService> reg, org.osgi.service.http.HttpService service)
-
Field Details
-
HTTP_SERVICE_CONTEXT_NAME
The name of the context for the http service.- See Also:
-
HTTP_SERVICE_CONTEXT_SERVICE_ID
public static final long HTTP_SERVICE_CONTEXT_SERVICE_IDThe id of the context for the http service.- See Also:
-
-
Constructor Details
-
HttpServiceFactory
public HttpServiceFactory(org.osgi.framework.BundleContext bundleContext, HandlerRegistry handlerRegistry)
-
-
Method Details
-
start
-
stop
public void stop() -
getService
public org.osgi.service.http.HttpService getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<org.osgi.service.http.HttpService> reg) - Specified by:
getServicein interfaceorg.osgi.framework.ServiceFactory<org.osgi.service.http.HttpService>
-
ungetService
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<org.osgi.service.http.HttpService> reg, org.osgi.service.http.HttpService service) - Specified by:
ungetServicein interfaceorg.osgi.framework.ServiceFactory<org.osgi.service.http.HttpService>
-
getHttpServiceServiceId
public long getHttpServiceServiceId()
-