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
-
Method Summary
Modifier and TypeMethodDescriptionorg.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
-
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 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
- Parameters:
httpContext
-proxy
-- Returns:
- the previous value associated with the key or null if there was no mapping for key
-
unregisterServletDelegate
- 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 )
-