org.eclipse.ecf.remoteservice.servlet
Class HttpServiceComponent
java.lang.Object
org.eclipse.ecf.remoteservice.servlet.HttpServiceComponent
public abstract class HttpServiceComponent
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServiceComponent
public HttpServiceComponent()
getDefault
public static HttpServiceComponent getDefault()
getHttpServices
public java.util.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 org.osgi.framework.BundleContext getContext()
activate
protected void activate(org.osgi.framework.BundleContext ctxt)
throws java.lang.Exception
- Throws:
java.lang.Exception
deactivate
protected void deactivate()
throws java.lang.Exception
- Throws:
java.lang.Exception
registerServlet
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
- Throws:
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
registerServlet
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
- Throws:
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
unregisterServlet
public void unregisterServlet(java.lang.String path)
unregisterServlet
public void unregisterServlet(java.lang.Class service)
getService
public <T> T getService(java.lang.Class<T> service)