Hello,
Purpose is to retrieve a document from an URL using an HTTP GET request.
It just downloads the contents of the URL using a Java URLConnection. It then saves the contents to the FileDocument you passed in. And the filename is the name of the file in the FileDocument entity.
Hope it helps!