Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-1423

Allow modules to define servlet filters

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      Just as the module subsystem allows for modules to define servlets and exposes them through the ModuleServlet, we need to allow modules to define filters. Since we have not yet found a good solution for allowing a module to modify web.xml directly, an alternative solution is to mimic the module servlet-handling behavior. This would involve inserting a "ModuleFilter" into the filter chain defined in web.xml. This ModuleFilter would then provide the necessary functionality to include any filters that are defined by modules when the request is passed onto it. This will also allow us to better control how these filters are loaded and unloaded when modules are started and stopped.

        Gliffy Diagrams

          Attachments

          1. modulefilter.patch
            31 kB
          2. moduleFiltersRevised.patch
            35 kB
          3. samplemodulefilter-1.0.omod
            5 kB

            Activity

              People

              Assignee:
              mseaton Mike Seaton
              Reporter:
              mseaton Mike Seaton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: