Skip to content

Improve Javadoc of ContentNegotiationManagerFactoryBean #23409

@manueljordan

Description

@manueljordan

About the javadoc for the ContentNegotiationManagerFactoryBean class, appears in the top the following:

Property Setter                 | Underlying Strategy          | Default Setting
setFavorPathExtension(boolean)  | Path Extension strategy      | On
favorParameter                  | Parameter strategy           | Off
ignoreAcceptHeader              | Header strategy              | On
defaultContentType              | Fixed content strategy       | Not set
defaultContentTypeStrategy      | ContentNegotiationStrategy   | Not set

Where again through the javadoc I can confirm the following:

  • The setFavorPathExtension method indicates that by default it is is set to true, same information as the table shown above, in this case On.
  • The favorParameter method indicates that by default it is is set to false, same information as the table shown above, in this case Off.

The situation is with the ignoreAcceptHeader method

  • The ignoreAcceptHeader method indicates that by default it is is set to false, but this information is not the same information as the table shown above, in this case On.

It is confuse, I am assuming that should be Off instead of On

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions