private void setHeaders ( final HttpServletResponse response , final Root root ) { response . setHeader ( "content-type" , "application/octet-stream" ) ; response . setHeader ( "content-disposition" , "attachment; filename=" + getSaveFilename ( root ) ) ; }
Fill in response headers to make this save the file instead of displaying it .