Class HttpServiceProxyFactory

java.lang.Object
org.adempiere.eclipse.equinox.http.servlet.HttpServiceProxyFactory
All Implemented Interfaces:
org.osgi.framework.ServiceFactory<org.osgi.service.http.HttpService>

public class HttpServiceProxyFactory extends Object implements org.osgi.framework.ServiceFactory<org.osgi.service.http.HttpService>
Author:
hengsin
  • Constructor Details

    • HttpServiceProxyFactory

      public HttpServiceProxyFactory()
  • Method Details

    • getService

      public org.osgi.service.http.HttpService getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<org.osgi.service.http.HttpService> registration)
      Specified by:
      getService in interface org.osgi.framework.ServiceFactory<org.osgi.service.http.HttpService>
    • ungetService

      public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<org.osgi.service.http.HttpService> registration, org.osgi.service.http.HttpService service)
      Specified by:
      ungetService in interface org.osgi.framework.ServiceFactory<org.osgi.service.http.HttpService>
    • registerServletDelegate

      public static ProxyServlet registerServletDelegate(String httpContext, ProxyServlet proxy)
      Parameters:
      httpContext -
      proxy -
      Returns:
      the previous value associated with the key or null if there was no mapping for key
    • unregisterServletDelegate

      public static ProxyServlet unregisterServletDelegate(ProxyServlet proxy)
      Parameters:
      proxy -
      Returns:
      the proxy if it have been register previously
    • getHttpServiceDelegate

      public org.osgi.service.http.HttpService getHttpServiceDelegate(org.osgi.framework.Bundle bundle, String httpContext)
      Parameters:
      bundle -
      httpContext -
      Returns:
      http service delegate for httpContext ( if any )