public class ResourceDownloadRewriteRule
extends org.tuckey.web.filters.urlrewrite.extend.RewriteRule
RewriteRule will noramlise a URL and then make sure that it does
not attempt to use directory traversal to access the WEB-INF directory.
This RewriteRule will also add the required caching headers
ResourceDownloadUtils.addPublicCachingHeaders(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).
Note: This implementation was lifted with some interpretation from JIRA (com.atlassian.jira.plugin.webresource.CachingResourceDownloadRewriteRule) ).
| Constructor and Description |
|---|
ResourceDownloadRewriteRule() |
| Modifier and Type | Method and Description |
|---|---|
org.tuckey.web.filters.urlrewrite.extend.RewriteMatch |
matches(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Copyright © 2017 Atlassian. All rights reserved.