Class ServletRegistry
java.lang.Object
org.nuxeo.ecm.webengine.rest.servlet.config.ServletRegistry
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.osgi.framework.BundleThe bundle owning this classprotected List<FilterSetDescriptor> protected Map<String, List<ResourcesDescriptor>> Store resources contributed from external bundles to servlets.static final Stringprotected List<ServletDescriptor> Servlets contributed to the extension points. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilterSet(FilterSetDescriptor filter) voidvoidaddServlet(ServletDescriptor descriptor) static voiddispose()getFiltersFor(String name) static ServletRegistrygetServletDescriptor(String name) voidreloadServlet(ServletDescriptor descriptor) voidremoveFilterSet(FilterSetDescriptor filter) voidvoidremoveServlet(ServletDescriptor descriptor)
-
Field Details
-
SERVLET_NAME
-
servlets
Servlets contributed to the extension points. -
filters
-
resources
Store resources contributed from external bundles to servlets. Map the servlet path to the list of contributed resources -
bundle
protected org.osgi.framework.Bundle bundleThe bundle owning this class
-
-
Method Details
-
getInstance
-
dispose
public static void dispose() -
getServletDescriptors
-
getFilterSetDescriptors
-
getServletDescriptor
-
getFiltersFor
-
addServlet
- Throws:
jakarta.servlet.ServletException
-
removeServlet
-
reloadServlet
- Throws:
jakarta.servlet.ServletException
-
addFilterSet
-
removeFilterSet
-
addResources
-
removeResources
-