Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-5690

Request header filtering in @RequestMapping

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0 M3
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      See SPR-5623:

      It is useful to filter @RequestMapping method based on request headers, similarly to filtering by paramters. In effect, this feature would look something like:

      @RequestMapping(value = "/hotels", header = "content-type=text/*")

      This would match requests where the Content-Type header is 'text/plain', 'text/html', etc.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              arjen.poutsma Arjen Poutsma
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 35 weeks, 3 days ago