Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5708

A way for Servlet to "self map" - so that mapping can be shared with other components

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 5.3
    • None
    • core
    • Yes
    • 5.3 Sprint 3, 5.3 Sprint 4

      Currently, the mapping of a servlet is configured under the ServletWrappingFilter's mappings node. This works nicely when integrating third-party filter, and is a good reflection of how one typically maps servlet in web.xml.
      However, with Magnolia's IoC and configuration mechanisms, one would tend to think that this mapping shouldn't be hardcoded anywhere. It currently has to - say, if some other components needs to generate links to a servlet, it needs to know where/how the servlet is mapped, and that generally ends up with either a hardcoded path, or a duplicate configuration.

      Here's a mechanism that will let Servlet declare their own mapping (i.e. if they implement SelfMappingServlet), so that the mapping can be configured centrally (i.e in MyModule, i.e /modules/mymod/configuration) and used in multiple places.

      http://wiki.magnolia-cms.com/display/DEV/Concept+Dynamic+Servlet+Mapping

        Acceptance criteria

              gjoseph Magnolia International
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: