org.apache.struts2.dispatcher
Interface StaticContentLoader
- All Known Implementing Classes:
- DefaultStaticContentLoader
public interface StaticContentLoader
Interface for loading static resources, based on a path
canHandle
boolean canHandle(String path)
- Parameters:
path
- Requested resource path
- Returns:
- true if this loader is able to load this type of resource, false otherwise
setHostConfig
void setHostConfig(HostConfig filterConfig)
- Parameters:
filterConfig
- The filter configuration
findStaticResource
void findStaticResource(String path,
HttpServletRequest request,
HttpServletResponse response)
throws IOException
- Locate a static resource and copy directly to the response, setting the
appropriate caching headers.
- Parameters:
path
- The resource namerequest
- The requestresponse
- The response
- Throws:
IOException
- If anything goes wrong
Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.