com.atlassian.confluence.servlet.download
Class ExportDownload
java.lang.Object
com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
com.atlassian.confluence.servlet.download.ExportDownload
- All Implemented Interfaces:
- DownloadStrategy
public class ExportDownload
- extends ServeAfterTransactionDownload
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExportDownload
public ExportDownload()
matches
public boolean matches(String urlPath)
getStreamForDownload
protected InputStream getStreamForDownload(HttpServletRequest httpServletRequest,
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
- Returns:
- The input stream to serve, or null if nothing to serve.
- Throws:
IOException
setDownloadResourceManager
public void setDownloadResourceManager(DownloadResourceManager downloadResourceManager)
createTempFile
@Deprecated
public static File createTempFile(String prefix,
String suffix)
throws 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:
IOException
getUrl
@Deprecated
public static String getUrl(File file,
String contentType)
- Deprecated. since 2.7. Instead use the
DownloadResourceWriter
to get the resource path.
getExportRoot
public static String getExportRoot()
- Deprecated. since 2.7