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.Bundle
The bundle owning this classprotected List
<FilterSetDescriptor> protected Map
<String, List<ResourcesDescriptor>> Store resources contributed from external bundles to servlets.static final String
protected List
<ServletDescriptor> Servlets contributed to the extension points. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilterSet
(FilterSetDescriptor filter) void
void
addServlet
(ServletDescriptor descriptor) static void
dispose()
getFiltersFor
(String name) static ServletRegistry
getServletDescriptor
(String name) void
reloadServlet
(ServletDescriptor descriptor) void
removeFilterSet
(FilterSetDescriptor filter) void
void
removeServlet
(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
-