org.springframework.web.servlet.view
Class ContentNegotiatingViewResolver.ActivationMediaTypeFactory

java.lang.Object
  extended by org.springframework.web.servlet.view.ContentNegotiatingViewResolver.ActivationMediaTypeFactory
Enclosing class:
ContentNegotiatingViewResolver

private static class ContentNegotiatingViewResolver.ActivationMediaTypeFactory
extends java.lang.Object

Inner class to avoid hard-coded JAF dependency.


Field Summary
private static javax.activation.FileTypeMap fileTypeMap
           
 
Constructor Summary
private ContentNegotiatingViewResolver.ActivationMediaTypeFactory()
           
 
Method Summary
static MediaType getMediaType(java.lang.String fileName)
           
private static javax.activation.FileTypeMap loadFileTypeMapFromContextSupportModule()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileTypeMap

private static final javax.activation.FileTypeMap fileTypeMap
Constructor Detail

ContentNegotiatingViewResolver.ActivationMediaTypeFactory

private ContentNegotiatingViewResolver.ActivationMediaTypeFactory()
Method Detail

loadFileTypeMapFromContextSupportModule

private static javax.activation.FileTypeMap loadFileTypeMapFromContextSupportModule()

getMediaType

public static MediaType getMediaType(java.lang.String fileName)