com.atlassian.confluence.servlet.rewrite
Class ConfluenceResourceDownloadRewriteRule

java.lang.Object
  extended by org.tuckey.web.filters.urlrewrite.extend.RewriteRule
      extended by com.atlassian.confluence.servlet.rewrite.ConfluenceResourceDownloadRewriteRule

public class ConfluenceResourceDownloadRewriteRule
extends org.tuckey.web.filters.urlrewrite.extend.RewriteRule

This Tuckey URL 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


Field Summary
static String DOWNLOAD_IMAGES
           
static String IMAGES
           
 
Constructor Summary
ConfluenceResourceDownloadRewriteRule()
           
 
Method Summary
 org.tuckey.web.filters.urlrewrite.extend.RewriteMatch matches(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class org.tuckey.web.filters.urlrewrite.extend.RewriteRule
destroy, initialise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

ConfluenceResourceDownloadRewriteRule

public ConfluenceResourceDownloadRewriteRule()
Method Detail

matches

public org.tuckey.web.filters.urlrewrite.extend.RewriteMatch matches(javax.servlet.http.HttpServletRequest request,
                                                                     javax.servlet.http.HttpServletResponse response)
Overrides:
matches in class org.tuckey.web.filters.urlrewrite.extend.RewriteRule


Copyright © 2003–2015 Atlassian. All rights reserved.