public interface

DownloadStrategy

com.atlassian.plugin.servlet.DownloadStrategy
Known Indirect Subclasses

Summary

Public Methods
boolean matches(String requestUri)
Returns true if the DownloadStrategy is supported for the given url path.
void serveFile(HttpServletRequest request, HttpServletResponse response)
Serves the file for the given request and response.

Public Methods

public boolean matches (String requestUri)

Returns true if the DownloadStrategy is supported for the given url path.

Parameters
requestUri the result of getRequestURI() converted to lowercase

public void serveFile (HttpServletRequest request, HttpServletResponse response)

Serves the file for the given request and response.

Throws
DownloadException if there was an error during serving of the file.