Package com.atlassian.bamboo.filter
Class ResourceDownloadRewriteRule
- java.lang.Object
-
- org.tuckey.web.filters.urlrewrite.extend.RewriteRule
-
- com.atlassian.bamboo.filter.ResourceDownloadRewriteRule
-
public class ResourceDownloadRewriteRule extends org.tuckey.web.filters.urlrewrite.extend.RewriteRule
This Tuckey URLRewriteRule
will normalise a URL and then make sure that it does not attempt to use directory traversal to access the WEB-INF/META-INF directory.This
RewriteRule
will also add the required caching headersResourceDownloadUtils.addPublicCachingHeaders(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
.Note: This implementation was lifted with some interpretation from Jira DC (com.atlassian.jira.plugin.webresource.CachingResourceDownloadRewriteRule) ).
-
-
Field Summary
Fields Modifier and Type Field Description static String
PATH_SEPARATOR
-
Constructor Summary
Constructors Constructor Description ResourceDownloadRewriteRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.tuckey.web.filters.urlrewrite.extend.RewriteMatch
matches(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-
-
Field Detail
-
PATH_SEPARATOR
public static final String PATH_SEPARATOR
- See Also:
- Constant Field Values
-
-