public abstract class HttpServiceComponent extends Object
| Constructor and Description |
|---|
HttpServiceComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(BundleContext ctxt) |
protected void |
bindHttpService(org.osgi.service.http.HttpService httpService) |
protected void |
deactivate() |
BundleContext |
getContext() |
static HttpServiceComponent |
getDefault() |
Collection<org.osgi.service.http.HttpService> |
getHttpServices() |
<T> T |
getService(Class<T> service) |
void |
registerServlet(Class service,
javax.servlet.Servlet servlet,
Dictionary dictionary,
org.osgi.service.http.HttpContext httpContext) |
void |
registerServlet(String path,
javax.servlet.Servlet servlet,
Dictionary dictionary,
org.osgi.service.http.HttpContext httpContext) |
protected void |
unbindHttpService(org.osgi.service.http.HttpService httpService) |
void |
unregisterServlet(Class service) |
void |
unregisterServlet(String path) |
public static HttpServiceComponent getDefault()
public Collection<org.osgi.service.http.HttpService> getHttpServices()
protected void bindHttpService(org.osgi.service.http.HttpService httpService)
protected void unbindHttpService(org.osgi.service.http.HttpService httpService)
public BundleContext getContext()
protected void activate(BundleContext ctxt) throws Exception
Exceptionpublic void registerServlet(Class service, javax.servlet.Servlet servlet, Dictionary dictionary, org.osgi.service.http.HttpContext httpContext) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
javax.servlet.ServletExceptionorg.osgi.service.http.NamespaceExceptionpublic void registerServlet(String path, javax.servlet.Servlet servlet, Dictionary dictionary, org.osgi.service.http.HttpContext httpContext) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
javax.servlet.ServletExceptionorg.osgi.service.http.NamespaceExceptionpublic void unregisterServlet(String path)
public void unregisterServlet(Class service)
public <T> T getService(Class<T> service)
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.