Class ConfluenceResourceDownloadRewriteRule
- java.lang.Object
-
- org.tuckey.web.filters.urlrewrite.extend.RewriteRule
-
- com.atlassian.confluence.servlet.rewrite.ConfluenceResourceDownloadRewriteRule
-
public class ConfluenceResourceDownloadRewriteRule extends org.tuckey.web.filters.urlrewrite.extend.RewriteRule
This Tuckey URLRewriteRule
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 usedCachedRewriteMatch
DisableCacheRewriteMatch
Note: Although a similar rules is provided by
ResourceDownloadRewriteRule
Confluence requires a url re-mapping for the "download/images" path, as well as support for non-caching headers
-
-
Field Summary
Fields Modifier and Type Field Description static String
DOWNLOAD_IMAGES
static String
IMAGES
-
Constructor Summary
Constructors Constructor Description ConfluenceResourceDownloadRewriteRule()
-
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
-
DOWNLOAD_IMAGES
public static final String DOWNLOAD_IMAGES
- See Also:
- Constant Field Values
-
IMAGES
public static final String IMAGES
- See Also:
- Constant Field Values
-
-