public abstract class ServeAfterTransactionDownload extends Object implements com.atlassian.plugin.servlet.DownloadStrategy
Modifier and Type | Class and Description |
---|---|
protected class |
ServeAfterTransactionDownload.StreamResultCallback
Spring transactional callback that calls getStreamForDownload within a database transaction
|
Constructor and Description |
---|
ServeAfterTransactionDownload() |
Modifier and Type | Method and Description |
---|---|
static String |
getDecodedPathInfo(javax.servlet.http.HttpServletRequest httpServletRequest) |
protected abstract 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.
|
protected org.springframework.transaction.support.TransactionCallback |
getStreamResultCallback(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
serveFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) |
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public static String getDecodedPathInfo(javax.servlet.http.HttpServletRequest httpServletRequest)
public final void serveFile(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws com.atlassian.plugin.servlet.DownloadException
serveFile
in interface com.atlassian.plugin.servlet.DownloadStrategy
com.atlassian.plugin.servlet.DownloadException
protected org.springframework.transaction.support.TransactionCallback getStreamResultCallback(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected abstract InputStream getStreamForDownload(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException
IOException
Copyright © 2003–2016 Atlassian. All rights reserved.