Skip to content

Introduce ContentNegotiationStrategy abstraction [SPR-8416] #13064

@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-8416 and commented

Along the lines of:

public interface ContentNegotiationStrategy {

  List<MediaType> resolveMediaTypes(NativeWebRequest webRequest);

}

Concrete implementations:

  • HeaderContentNegotiationStrategy
  • PathExtensionContentNegotiationStrategy
  • ParameterContentNegotiationStrategy
  • FixedContentNegotiationStrategy

Also perhaps a ContentNegotiationManager class that is configured with and delegates to one or more of the above.


Affects: 3.1 M1

This issue is a sub-task of #13057

1 votes, 2 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions