org.nuxeo.ecm.webengine.jaxrs.servlet.config
Class ServletRegistry
java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.servlet.config.ServletRegistry
public class ServletRegistry
- extends Object
Handle servlet registration from Nuxeo extension points. This class is a
singleton shared by the Activator
and the
ServletRegistryComponent
component. Because we don't have yet a
solution to synchronize the initialization time of the Activator and a Nuxeo
component we are using a singleton instance to be able
- Author:
- Bogdan Stefanescu
SERVLET_NAME
public static final String SERVLET_NAME
getInstance
public static ServletRegistry getInstance()
dispose
public static void dispose()
getServletDescriptors
public ServletDescriptor[] getServletDescriptors()
getFilterSetDescriptors
public FilterSetDescriptor[] getFilterSetDescriptors()
getServletDescriptor
public ServletDescriptor getServletDescriptor(String name)
getFiltersFor
public List<FilterSetDescriptor> getFiltersFor(String name)
initHttpService
public void initHttpService(org.osgi.service.http.HttpService service)
throws Exception
- Called by the service tracker when HttpService is up to configure it
with current contributed servlets
- Parameters:
service
-
- Throws:
Exception
getHttpService
public org.osgi.service.http.HttpService getHttpService()
addServlet
public void addServlet(ServletDescriptor descriptor)
throws Exception
- Throws:
Exception
removeServlet
public void removeServlet(ServletDescriptor descriptor)
reloadServlet
public void reloadServlet(ServletDescriptor descriptor)
throws Exception
- Throws:
Exception
addFilterSet
public void addFilterSet(FilterSetDescriptor filter)
removeFilterSet
public void removeFilterSet(FilterSetDescriptor filter)
addResources
public void addResources(ResourcesDescriptor rd)
removeResources
public void removeResources(ResourcesDescriptor rd)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.