...
- Servlets defined by modules are accessed via /openmrs/moduleServlet/moduleId/servlet-name
- Must contain both 'servlet-name' and 'servlet-class' elements
- See Module Servlets
- servlet-name: name/path used for the servlet
- servlet-class: Full path to the java class implementing javax.servlet.http.HttpServlet
- init-param: (Starting from OpenMRS Core 2.7.0)
- param-name: name of the parameter to pass into the filterservlet
- param-value: value of the parameter to pass into the filterservlet
filter
- Filters defined by modules are executed within the context of the ModuleFilter, which is defined in web.XML. This filter executes for every request, and iterates over every filter defined by each module.
- Configuration follows the same conventions as the Servlet specification - each "filter' element must contain both 'filter-name' and 'filter-class' elements, and supports optional "init-param" elements in order to pass any parameters into the 'filter-class' upon initialization.
- filter-name: unique name to identify the filter
- filter-class: Full path to the java class implementing javax.servlet.Filter
- init-param:
- param-name: name of the parameter to pass into the filter
- param-value: value of the parameter to pass into the filter
...