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 Summary
Constructors Constructor Description HttpServiceProxyFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.service.http.HttpService
getHttpServiceDelegate(org.osgi.framework.Bundle bundle, String httpContext)
org.osgi.service.http.HttpService
getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<org.osgi.service.http.HttpService> registration)
static ProxyServlet
registerServletDelegate(String httpContext, ProxyServlet proxy)
void
ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<org.osgi.service.http.HttpService> registration, org.osgi.service.http.HttpService service)
static ProxyServlet
unregisterServletDelegate(ProxyServlet proxy)
-
-
-
Method Detail
-
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 interfaceorg.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 interfaceorg.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 )
-
-