com.atlassian.confluence.servlet.download
Class ExportDownload

java.lang.Object
  extended by com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
      extended by com.atlassian.confluence.servlet.download.ExportDownload
All Implemented Interfaces:
com.atlassian.plugin.servlet.DownloadStrategy

public class ExportDownload
extends ServeAfterTransactionDownload


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
ServeAfterTransactionDownload.StreamResultCallback
 
Constructor Summary
ExportDownload()
           
 
Method Summary
static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix)
          Deprecated. since 2.7. Instead use the WritableDownloadResourceManager to generate a DownloadResourceWriter Create a temporary file in the appropriate location to be returned by this service.
static java.lang.String getExportRoot()
          Deprecated. since 2.7
protected  java.io.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.
static java.lang.String getUrl(java.io.File file, java.lang.String contentType)
          Deprecated. since 2.7. Instead use the DownloadResourceWriter to get the resource path.
 boolean matches(java.lang.String urlPath)
           
 void setDownloadResourceManager(DownloadResourceManager downloadResourceManager)
           
 
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

ExportDownload

public ExportDownload()
Method Detail

matches

public boolean matches(java.lang.String urlPath)

getStreamForDownload

protected java.io.InputStream getStreamForDownload(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                   javax.servlet.http.HttpServletResponse httpServletResponse)
                                            throws java.io.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
Returns:
The input stream to serve, or null if nothing to serve.
Throws:
java.io.IOException

setDownloadResourceManager

public void setDownloadResourceManager(DownloadResourceManager downloadResourceManager)

createTempFile

public static java.io.File createTempFile(java.lang.String prefix,
                                          java.lang.String suffix)
                                   throws java.io.IOException
Deprecated. since 2.7. Instead use the WritableDownloadResourceManager to generate a DownloadResourceWriter Create a temporary file in the appropriate location to be returned by this service.

Throws:
java.io.IOException

getUrl

public static java.lang.String getUrl(java.io.File file,
                                      java.lang.String contentType)
Deprecated. since 2.7. Instead use the DownloadResourceWriter to get the resource path.


getExportRoot

public static java.lang.String getExportRoot()
Deprecated. since 2.7



Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.