org.eclipse.ecf.remoteservice.servlet
Class HttpServiceComponent

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

public abstract class HttpServiceComponent
extends java.lang.Object


Constructor Summary
HttpServiceComponent()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServiceComponent

public HttpServiceComponent()
Method Detail

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)