Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate unused web-specific MimeTypeUtils constants [SPR-15137] #19703

Closed
spring-issuemaster opened this issue Jan 12, 2017 · 1 comment

Comments

@spring-issuemaster
Copy link
Collaborator

commented Jan 12, 2017

Juergen Hoeller opened SPR-15137 and commented

MimeTypeUtils has a subset of MediaType's constants but hardly any are actually used. Let's deprecate unused ones and remove them in 5.0 altogether.


Issue Links:

  • #19676 Add MimeType and MediaType constants for RSS
  • #19474 MediaTypeFactory should come with its own complete mime.types file

Referenced from: commits 1521094, 7c05b42

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 12, 2017

Juergen Hoeller commented

It looks like we can safely remove MULTIPART_FORM_DATA, APPLICATION_FORM_URLENCODED and the specific XML variants APPLICATION_ATOM_XML} and {{APPLICATION_XHTML_XML in 5.0, leaving those up to the corresponding constants on MediaType (where a much richer selection is available). Let's deprecate those in 4.3.6 then, leaving just 10 basic constants in MimeTypeUtils.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.