Class HttpServiceProxy
- java.lang.Object
-
- org.adempiere.eclipse.equinox.http.servlet.HttpServiceProxy
-
- All Implemented Interfaces:
org.eclipse.equinox.http.servlet.ExtendedHttpService,org.osgi.service.http.HttpService
public class HttpServiceProxy extends Object implements org.osgi.service.http.HttpService, org.eclipse.equinox.http.servlet.ExtendedHttpService
- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description HttpServiceProxy(org.osgi.framework.Bundle bundle, HttpServiceProxyFactory httpServiceProxyFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.service.http.HttpContextcreateDefaultHttpContext()protected voidprocessPendingRegistration(String httpContext)process registration that happens before the start of http service delegatevoidregisterFilter(String alias, javax.servlet.Filter filter, Dictionary<String,String> initparams, org.osgi.service.http.HttpContext context)voidregisterResources(String alias, String name, org.osgi.service.http.HttpContext context)voidregisterServlet(String alias, javax.servlet.Servlet servlet, Dictionary initparams, org.osgi.service.http.HttpContext context)voidunregister(String alias)voidunregisterFilter(javax.servlet.Filter filter)
-
-
-
Constructor Detail
-
HttpServiceProxy
public HttpServiceProxy(org.osgi.framework.Bundle bundle, HttpServiceProxyFactory httpServiceProxyFactory)
-
-
Method Detail
-
registerFilter
public void registerFilter(String alias, javax.servlet.Filter filter, Dictionary<String,String> initparams, org.osgi.service.http.HttpContext context) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
- Specified by:
registerFilterin interfaceorg.eclipse.equinox.http.servlet.ExtendedHttpService- Throws:
javax.servlet.ServletExceptionorg.osgi.service.http.NamespaceException
-
unregisterFilter
public void unregisterFilter(javax.servlet.Filter filter)
- Specified by:
unregisterFilterin interfaceorg.eclipse.equinox.http.servlet.ExtendedHttpService
-
registerServlet
public void registerServlet(String alias, javax.servlet.Servlet servlet, Dictionary initparams, org.osgi.service.http.HttpContext context) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
- Specified by:
registerServletin interfaceorg.osgi.service.http.HttpService- Throws:
javax.servlet.ServletExceptionorg.osgi.service.http.NamespaceException
-
registerResources
public void registerResources(String alias, String name, org.osgi.service.http.HttpContext context) throws org.osgi.service.http.NamespaceException
- Specified by:
registerResourcesin interfaceorg.osgi.service.http.HttpService- Throws:
org.osgi.service.http.NamespaceException
-
processPendingRegistration
protected void processPendingRegistration(String httpContext) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
process registration that happens before the start of http service delegate- Parameters:
httpContext-- Throws:
javax.servlet.ServletExceptionorg.osgi.service.http.NamespaceException
-
unregister
public void unregister(String alias)
- Specified by:
unregisterin interfaceorg.osgi.service.http.HttpService
-
createDefaultHttpContext
public org.osgi.service.http.HttpContext createDefaultHttpContext()
- Specified by:
createDefaultHttpContextin interfaceorg.osgi.service.http.HttpService
-
-