Whether the plugin supports downloading resource files directly in the background

Hi, I have a problem with how to download resource files for confluence plugins,such as pdf or word? help me…
I now get the path from the API(settingsManager.getGlobalSettings().getBaseUrl()), but it doesn’t make sense to configure confluence’s server to be the client, that is, to configure host resolution.
thanks…