Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.jaxrs.servlet.config
Class ServletRegistry

java.lang.Object
  extended by 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

Field Summary
static String SERVLET_NAME
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVLET_NAME

public static final String SERVLET_NAME
Method Detail

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)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.