com.atlassian.confluence.servlet.download
Class ServeAfterTransactionDownload.StreamResultCallback

java.lang.Object
  extended by com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.StreamResultCallback
All Implemented Interfaces:
org.springframework.transaction.support.TransactionCallback
Enclosing class:
ServeAfterTransactionDownload

protected class ServeAfterTransactionDownload.StreamResultCallback
extends java.lang.Object
implements org.springframework.transaction.support.TransactionCallback

Spring transactional callback that calls getStreamForDownload within a database transaction


Constructor Summary
ServeAfterTransactionDownload.StreamResultCallback(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 java.lang.Object doInTransaction(org.springframework.transaction.TransactionStatus transactionStatus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServeAfterTransactionDownload.StreamResultCallback

public ServeAfterTransactionDownload.StreamResultCallback(javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpServletResponse response)
Method Detail

doInTransaction

public java.lang.Object doInTransaction(org.springframework.transaction.TransactionStatus transactionStatus)
Specified by:
doInTransaction in interface org.springframework.transaction.support.TransactionCallback
Returns:
a StreamResult based on the execution of getStreamForDownload


Copyright © 2003-2014 Atlassian. All Rights Reserved.