public URL getDownloadURL ( ) { URL url = CONTENT_URL_TEMPLATE . build ( this . getAPI ( ) . getBaseURL ( ) , this . getID ( ) ) ; BoxAPIRequest request = new BoxAPIRequest ( this . getAPI ( ) , url , "GET" ) ; request . setFollowRedirects ( false ) ; BoxRedirectResponse response = ( BoxRedirectResponse ) request . send ( ) ; return response . getRedirectURL ( ) ; }
Gets an expiring URL for downloading a file directly from Box . This can be user for example for sending as a redirect to a browser to cause the browser to download the file directly from Box .