public abstract class HttpServiceComponent
extends java.lang.Object
Constructor and Description |
---|
HttpServiceComponent() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext ctxt) |
protected void |
bindHttpService(org.osgi.service.http.HttpService httpService) |
protected void |
deactivate() |
org.osgi.framework.BundleContext |
getContext() |
static HttpServiceComponent |
getDefault() |
java.util.Collection<org.osgi.service.http.HttpService> |
getHttpServices() |
<T> T |
getService(java.lang.Class<T> service) |
void |
registerServlet(java.lang.Class service,
javax.servlet.Servlet servlet,
java.util.Dictionary dictionary,
org.osgi.service.http.HttpContext httpContext) |
void |
registerServlet(java.lang.String path,
javax.servlet.Servlet servlet,
java.util.Dictionary dictionary,
org.osgi.service.http.HttpContext httpContext) |
protected void |
unbindHttpService(org.osgi.service.http.HttpService httpService) |
void |
unregisterServlet(java.lang.Class service) |
void |
unregisterServlet(java.lang.String path) |
public static HttpServiceComponent getDefault()
public java.util.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 org.osgi.framework.BundleContext getContext()
protected void activate(org.osgi.framework.BundleContext ctxt) throws java.lang.Exception
java.lang.Exception
protected void deactivate() throws java.lang.Exception
java.lang.Exception
public void registerServlet(java.lang.Class service, javax.servlet.Servlet servlet, java.util.Dictionary dictionary, org.osgi.service.http.HttpContext httpContext) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
public void registerServlet(java.lang.String path, javax.servlet.Servlet servlet, java.util.Dictionary dictionary, org.osgi.service.http.HttpContext httpContext) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
public void unregisterServlet(java.lang.String path)
public void unregisterServlet(java.lang.Class service)
public <T> T getService(java.lang.Class<T> service)