com.atlassian.plugin.servlet
Interface DownloadStrategy
- All Known Implementing Classes:
- PluggableDownloadStrategy, PluginResourceDownload
public interface DownloadStrategy
|
Method Summary |
boolean |
matches(String requestUri)
Returns true if the DownloadStrategy is supported for the given url path. |
void |
serveFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Serves the file for the given request and response. |
matches
boolean matches(String requestUri)
- Returns true if the DownloadStrategy is supported for the given url path.
- Parameters:
requestUri - the result of HttpServletRequest.getRequestURI() converted to lowercase
serveFile
void serveFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws DownloadException
- Serves the file for the given request and response.
- Throws:
DownloadException - if there was an error during serving of the file.
Copyright © 2010 Atlassian. All Rights Reserved.