Class ServeAfterTransactionDownload.StreamResultCallback

  • All Implemented Interfaces:
    org.springframework.transaction.support.TransactionCallback<com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.StreamResult>
    Enclosing class:
    ServeAfterTransactionDownload

    protected class ServeAfterTransactionDownload.StreamResultCallback
    extends Object
    implements org.springframework.transaction.support.TransactionCallback<com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.StreamResult>
    Spring transactional callback that calls getStreamForDownload within a database transaction
    • Constructor Detail

      • StreamResultCallback

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

      • doInTransaction

        public com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.StreamResult doInTransaction​(@NonNull org.springframework.transaction.TransactionStatus transactionStatus)
        Specified by:
        doInTransaction in interface org.springframework.transaction.support.TransactionCallback<com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.StreamResult>
        Returns:
        a StreamResult based on the execution of getStreamForDownload