org.cateproject.view.cache
Class CateContentTypeResolverImpl
java.lang.Object
org.cateproject.view.cache.CateContentTypeResolverImpl
- All Implemented Interfaces:
- CateContentTypeResolver
public class CateContentTypeResolverImpl
- extends Object
- implements CateContentTypeResolver
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CateContentTypeResolverImpl
public CateContentTypeResolverImpl()
setHandlerMappings
public void setHandlerMappings(Collection<org.springframework.web.servlet.handler.AbstractHandlerMapping> handlerMappings)
setViewResolver
public void setViewResolver(org.springframework.web.servlet.view.ContentNegotiatingViewResolver viewResolver)
setExtensions
public void setExtensions(Map<String,String> mediaTypes)
- Because we use this in conjunction with the
ContentNegotiatingViewResolver we need to reverse the map of
MediaType to extension to do the reverse lookup
resolveContentType
public String resolveContentType(HttpServletRequest request)
throws Exception
- Specified by:
resolveContentType in interface CateContentTypeResolver
- Throws:
Exception
Copyright © 2010. All Rights Reserved.