Class HttpServiceComponent
- java.lang.Object
-
- org.eclipse.ecf.remoteservice.servlet.HttpServiceComponent
-
public abstract class HttpServiceComponent extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpServiceComponent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate(BundleContext ctxt)protected voidbindHttpService(org.osgi.service.http.HttpService httpService)protected voiddeactivate()BundleContextgetContext()static HttpServiceComponentgetDefault()Collection<org.osgi.service.http.HttpService>getHttpServices()<T> TgetService(Class<T> service)voidregisterServlet(Class service, javax.servlet.Servlet servlet, Dictionary dictionary, org.osgi.service.http.HttpContext httpContext)voidregisterServlet(String path, javax.servlet.Servlet servlet, Dictionary dictionary, org.osgi.service.http.HttpContext httpContext)protected voidunbindHttpService(org.osgi.service.http.HttpService httpService)voidunregisterServlet(Class service)voidunregisterServlet(String path)
-
-
-
Method Detail
-
getDefault
public static HttpServiceComponent getDefault()
-
getHttpServices
public Collection<org.osgi.service.http.HttpService> getHttpServices()
-
bindHttpService
protected void bindHttpService(org.osgi.service.http.HttpService httpService)
-
unbindHttpService
protected void unbindHttpService(org.osgi.service.http.HttpService httpService)
-
getContext
public BundleContext getContext()
-
activate
protected void activate(BundleContext ctxt) throws Exception
- 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.ServletExceptionorg.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.ServletExceptionorg.osgi.service.http.NamespaceException
-
unregisterServlet
public void unregisterServlet(String path)
-
unregisterServlet
public void unregisterServlet(Class service)
-
getService
public <T> T getService(Class<T> service)
-
-