public interface DownloadStrategy
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean matches(String requestUri)
requestUri - the result of HttpServletRequest.getRequestURI() converted to lowercasevoid serveFile(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws DownloadException
DownloadException - if there was an error during serving of the file.Copyright © 2014 Atlassian. All rights reserved.