com.atlassian.confluence.servlet.download
Class ResourceDownload

java.lang.Object
  extended bycom.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
      extended bycom.atlassian.confluence.servlet.download.ResourceDownload
All Implemented Interfaces:
DownloadStrategy

public class ResourceDownload
extends ServeAfterTransactionDownload


Nested Class Summary
 
Nested classes inherited from class com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
ServeAfterTransactionDownload.StreamResultCallback
 
Constructor Summary
ResourceDownload()
           
 
Method Summary
 DefaultResourceManager getResourceManager()
           
 SpaceManager getSpaceManager()
           
protected  InputStream getStreamForDownload(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          Get the input stream to serve to the client outside of the database transaction.
 boolean matches(String urlPath)
           
 void setResourceManager(DefaultResourceManager defaultResourceManager)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 
Methods inherited from class com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
getDecodedPathInfo, getStreamResultCallback, serveFile, setTransactionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceDownload

public ResourceDownload()
Method Detail

matches

public boolean matches(String urlPath)

getStreamForDownload

protected InputStream getStreamForDownload(javax.servlet.http.HttpServletRequest httpServletRequest,
                                           javax.servlet.http.HttpServletResponse httpServletResponse)
                                    throws IOException
Description copied from class: ServeAfterTransactionDownload
Get the input stream to serve to the client outside of the database transaction. The inputstream must be useable outside of the database transaction that created it

Specified by:
getStreamForDownload in class ServeAfterTransactionDownload
Parameters:
httpServletRequest -
httpServletResponse -
Returns:
The input stream to serve, or null if nothing to serve.
Throws:
IOException

getResourceManager

public DefaultResourceManager getResourceManager()

setResourceManager

public void setResourceManager(DefaultResourceManager defaultResourceManager)

getSpaceManager

public SpaceManager getSpaceManager()

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)


Confluence is developed by Atlassian.