org.riotfamily.common.web.mapping
Class ResourceHandlerMapping

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.handler.AbstractHandlerMapping
              extended by org.riotfamily.common.web.mapping.ResourceHandlerMapping
All Implemented Interfaces:
ApplicationContextAware, Ordered, ServletContextAware, HandlerMapping

public class ResourceHandlerMapping
extends AbstractHandlerMapping

HandlerMapping that serves static resources from the application directory.

For security reasons no resources under WEB-INF or outside of the application directory will be served.

Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
static Pattern FORBIDDEN
           
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Fields inherited from interface org.springframework.web.servlet.HandlerMapping
PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ResourceHandlerMapping()
           
 
Method Summary
protected  Object getHandlerInternal(HttpServletRequest request)
           
 void setFileTypeMap(FileTypeMap fileTypeMap)
           
 
Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping
adaptInterceptor, extendInterceptors, getAdaptedInterceptors, getDefaultHandler, getHandler, getHandlerExecutionChain, getOrder, initApplicationContext, initInterceptors, setDefaultHandler, setInterceptors, setOrder
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORBIDDEN

public static final Pattern FORBIDDEN
Constructor Detail

ResourceHandlerMapping

public ResourceHandlerMapping()
Method Detail

setFileTypeMap

public void setFileTypeMap(FileTypeMap fileTypeMap)

getHandlerInternal

protected Object getHandlerInternal(HttpServletRequest request)
                             throws Exception
Specified by:
getHandlerInternal in class AbstractHandlerMapping
Throws:
Exception