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

Document how to register custom MIME type in MockServletContext [SPR-12126] #16742

1 task done
spring-projects-issues opened this issue Aug 26, 2014 · 1 comment
1 task done
in: test type: documentation


Copy link

@spring-projects-issues spring-projects-issues commented Aug 26, 2014

Sam Brannen opened SPR-12126 and commented

Status Quo

As can be seen in the discussion on StackOverflow (see Reference URL), developers may not be aware that it is possible to configure a custom MIME type when using Spring's MockServletContext.


  1. Document how to register a custom MIME type using the Java Activation Framework in conjunction with MockServletContext.

Affects: 3.0 GA

Reference URL:

Referenced from: commits d5c6bcb

Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Aug 26, 2014

Sam Brannen commented

Completed as described in the comments for GitHub commit d5c6bcb:

How to register MIME types in MockServletContext

Prior to this commit, it was unclear that it was possible to register
custom MIME types when using MockServletContext.

This commit updates the Javadoc for MockServletContext.getMimeType()
with an example of how to achieve this using the MimetypesFileTypeMap
from the Java Activation Framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: test type: documentation
None yet

No branches or pull requests

2 participants