public class

ExportDownload

extends ServeAfterTransactionDownload
java.lang.Object
   ↳ com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
     ↳ com.atlassian.confluence.servlet.download.ExportDownload

Summary

Public Constructors
ExportDownload()
Public Methods
@Deprecated static File createTempFile(String prefix, String suffix)
This method is deprecated. since 2.7. Instead use the WritableDownloadResourceManager to generate a DownloadResourceWriter
@Deprecated static String getExportRoot()
This method is deprecated. since 2.7
@Deprecated static String getUrl(File file, String contentType)
This method is deprecated. since 2.7. Instead use the DownloadResourceWriter to get the resource path.
boolean matches(String urlPath)
void setDownloadResourceManager(DownloadResourceManager downloadResourceManager)
Protected Methods
InputStream getStreamForDownload(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
Get the input stream to serve to the client outside of the database transaction.
[Expand]
Inherited Methods
From class com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
From class java.lang.Object
From interface com.atlassian.plugin.servlet.DownloadStrategy

Public Constructors

public ExportDownload ()

Public Methods

@Deprecated public static File createTempFile (String prefix, String suffix)

This method is 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
IOException

@Deprecated public static String getExportRoot ()

This method is deprecated.
since 2.7

@Deprecated public static String getUrl (File file, String contentType)

This method is deprecated.
since 2.7. Instead use the DownloadResourceWriter to get the resource path.

public boolean matches (String urlPath)

public void setDownloadResourceManager (DownloadResourceManager downloadResourceManager)

Protected Methods

protected InputStream getStreamForDownload (HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)

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

Returns
  • The input stream to serve, or null if nothing to serve.
Throws
IOException