title: How to obtain the download url for a document library content programmatically
body: <p>I have several contents in my document library (images, documents, videos...) and I want to obtain the download url for each of them programmatically, so I can show them on a jsp in a custom portlet.</p>
  
  <p>Investigating, I have found this page with a possible solution:
  <a href="https://www.liferay.com/community/forums/-/message_boards/message/11073293" rel="noreferrer">https://www.liferay.com/community/forums/-/message_boards/message/11073293</a>
  but I'm not comfortable with it, since it implies building the url manually with several parameters.</p>
  
  <p>I would like to know if there is a better way ("Liferay way") to do this.</p>