com.atlassian.plugin.servlet
Class ResourceDownloadUtils

java.lang.Object
  extended by com.atlassian.plugin.servlet.ResourceDownloadUtils

public class ResourceDownloadUtils
extends java.lang.Object


Constructor Summary
ResourceDownloadUtils()
           
 
Method Summary
static void addCachingHeaders(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          Set 'expire' headers to cache for ten years.
static void addCachingHeaders(javax.servlet.http.HttpServletResponse httpServletResponse)
          Set 'expire' headers to cache for ten years.
static void serveFileImpl(javax.servlet.http.HttpServletResponse httpServletResponse, java.io.InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceDownloadUtils

public ResourceDownloadUtils()
Method Detail

serveFileImpl

public static void serveFileImpl(javax.servlet.http.HttpServletResponse httpServletResponse,
                                 java.io.InputStream in)
                          throws java.io.IOException
Throws:
java.io.IOException

addCachingHeaders

public static void addCachingHeaders(javax.servlet.http.HttpServletResponse httpServletResponse)
Set 'expire' headers to cache for ten years.


addCachingHeaders

public static void addCachingHeaders(javax.servlet.http.HttpServletRequest httpServletRequest,
                                     javax.servlet.http.HttpServletResponse httpServletResponse)
Set 'expire' headers to cache for ten years. This method is called from UrlRewriteFilter, and therefore needs to have 'request' and 'response' as parameters.

See Also:
http://tuckey.org/urlrewrite/manual/2.6/


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.