Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts2.dispatcher
Interface StaticContentLoader

All Known Implementing Classes:
  DefaultStaticContentLoader

    public interface StaticContentLoader

Interface for loading static resources, based on a path

Method Summary
`boolean` | `canHandle(java.lang.String path)`
`void` | `findStaticResource(java.lang.String path, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)` Locate a static resource and copy directly to the response, setting the appropriate caching headers.
`void` | `setHostConfig(HostConfig filterConfig)`

Method Detail

### canHandle

    boolean canHandle(java.lang.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(java.lang.String path,
                            javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                            throws java.io.IOException

  Locate a static resource and copy directly to the response, setting the appropriate caching headers.

  Parameters:
    `path` - The resource name
    `request` - The request
    `response` - The response
  Throws:
    `java.io.IOException` - If anything goes wrong

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.