public class ServletRegistry extends Object
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 ableModifier and Type | Field and Description |
---|---|
static String |
SERVLET_NAME |
Modifier and Type | Method and Description |
---|---|
void |
addFilterSet(FilterSetDescriptor filter) |
void |
addResources(ResourcesDescriptor rd) |
void |
addServlet(ServletDescriptor descriptor) |
static void |
dispose() |
FilterSetDescriptor[] |
getFilterSetDescriptors() |
List<FilterSetDescriptor> |
getFiltersFor(String name) |
org.osgi.service.http.HttpService |
getHttpService() |
static ServletRegistry |
getInstance() |
ServletDescriptor |
getServletDescriptor(String name) |
ServletDescriptor[] |
getServletDescriptors() |
void |
initHttpService(org.osgi.service.http.HttpService service)
Called by the service tracker when HttpService is up to configure it
with current contributed servlets
|
void |
reloadServlet(ServletDescriptor descriptor) |
void |
removeFilterSet(FilterSetDescriptor filter) |
void |
removeResources(ResourcesDescriptor rd) |
void |
removeServlet(ServletDescriptor descriptor) |
public static final String SERVLET_NAME
public static ServletRegistry getInstance()
public static void dispose()
public ServletDescriptor[] getServletDescriptors()
public FilterSetDescriptor[] getFilterSetDescriptors()
public ServletDescriptor getServletDescriptor(String name)
public List<FilterSetDescriptor> getFiltersFor(String name)
public void initHttpService(org.osgi.service.http.HttpService service) throws Exception
service
- Exception
public org.osgi.service.http.HttpService getHttpService()
public void addServlet(ServletDescriptor descriptor) throws Exception
Exception
public void removeServlet(ServletDescriptor descriptor)
public void reloadServlet(ServletDescriptor descriptor) throws Exception
Exception
public void addFilterSet(FilterSetDescriptor filter)
public void removeFilterSet(FilterSetDescriptor filter)
public void addResources(ResourcesDescriptor rd)
public void removeResources(ResourcesDescriptor rd)
Copyright © 2013 Nuxeo SA. All Rights Reserved.