public class ConfluenceResourceDownloadRewriteRule
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 caching/no-caching headers (if necessary) depending on URL used
CachedRewriteMatch
DisableCacheRewriteMatch
Note: Although a similar rules is provided by com.atlassian.plugin.webresource.filter.rewrite.ResourceDownloadRewriteRule
Confluence requires a url re-mapping for the "download/images" path, as well as support for non-caching headers
Modifier and Type | Field and Description |
---|---|
static String |
DOWNLOAD_IMAGES |
static String |
IMAGES |
Constructor and Description |
---|
ConfluenceResourceDownloadRewriteRule() |
Modifier and Type | Method and Description |
---|---|
org.tuckey.web.filters.urlrewrite.extend.RewriteMatch |
matches(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static final String DOWNLOAD_IMAGES
public static final String IMAGES
Copyright © 2003–2020 Atlassian. All rights reserved.