com.atlassian.plugin.servlet
Interface DownloadStrategy
- All Known Implementing Classes:
- PluginResourceDownload
public interface DownloadStrategy
Method Summary |
boolean |
matches(java.lang.String urlPath)
Returns true if the DownloadStrategy is supported for the given url path. |
void |
serveFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Serves the file for the given request and response. |
matches
boolean matches(java.lang.String urlPath)
- Returns true if the DownloadStrategy is supported for the given url path.
serveFile
void serveFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws DownloadException
- Serves the file for the given request and response.
- Throws:
DownloadException
- if there was an error during serving of the file.
Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.