Class HttpServiceComponent

java.lang.Object
org.eclipse.ecf.remoteservice.servlet.HttpServiceComponent

public abstract class HttpServiceComponent extends Object
  • Constructor Details

    • HttpServiceComponent

      public HttpServiceComponent()
  • Method Details

    • 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
    • deactivate

      protected void deactivate() 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.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

      public void unregisterServlet(String path)
    • unregisterServlet

      public void unregisterServlet(Class service)
    • getService

      public <T> T getService(Class<T> service)