Spring Framework
  1. Spring Framework
  2. SPR-7353

Add equivalent of JAX-RS @Produces to Spring MVC

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.1 M2
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      As a Spring MVC user, I would like the option to explicitly specify the media types a @Controller can produce. If a client does not accept at least one of those media types, the server should return the NOT_ACCEPTABLE (406) status.

      We should pursue semantic alignment with JAX-RS where possible. See http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/Produces.html for a description of how JAX-RS supports this feature.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Arjen Poutsma
              Reporter:
              Keith Donald
              Last updater:
              Trevor Marshall
            • Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 42 weeks, 1 day ago