Class HttpServiceComponent
java.lang.Object
org.eclipse.ecf.remoteservice.servlet.HttpServiceComponent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
activate
(BundleContext ctxt) protected void
bindHttpService
(org.osgi.service.http.HttpService httpService) protected void
static HttpServiceComponent
Collection<org.osgi.service.http.HttpService>
<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)
-
Constructor Details
-
HttpServiceComponent
public HttpServiceComponent()
-
-
Method Details
-
getDefault
-
getHttpServices
-
bindHttpService
protected void bindHttpService(org.osgi.service.http.HttpService httpService) -
unbindHttpService
protected void unbindHttpService(org.osgi.service.http.HttpService httpService) -
getContext
-
activate
- Throws:
Exception
-
deactivate
- Throws:
Exception
-
registerServlet
public 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 - Throws:
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
-
registerServlet
public 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 - Throws:
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
-
unregisterServlet
-
unregisterServlet
-
getService
-