Creating a Taxonomic e-Science

org.cateproject.view.cache
Class CateContentTypeResolverImpl

java.lang.Object
  extended by org.cateproject.view.cache.CateContentTypeResolverImpl
All Implemented Interfaces:
CateContentTypeResolver

public class CateContentTypeResolverImpl
extends Object
implements CateContentTypeResolver


Constructor Summary
CateContentTypeResolverImpl()
           
 
Method Summary
 String resolveContentType(HttpServletRequest request)
           
 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
 void setHandlerMappings(Collection<org.springframework.web.servlet.handler.AbstractHandlerMapping> handlerMappings)
           
 void setViewResolver(org.springframework.web.servlet.view.ContentNegotiatingViewResolver viewResolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CateContentTypeResolverImpl

public CateContentTypeResolverImpl()
Method Detail

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

Creating a Taxonomic e-Science

Copyright © 2010. All Rights Reserved.