In Foundry logs, I want to print the final endpoint URL?

In Foundry middleware log or server-datasource-paylod log, I want to print the final endpoint URL? How to do that? Which Java object holds the data? An example would be helpful.

Hello @Singaramani T ,

I think you can use URLProvider class in this scenario.

Generally we use URLProvider to change the backend endpoint URL's based on which backend environments Foundry needs to talk to (DEV, SIT, etc.). But I think, you can use this class in your scenario to log the final endpoint URL that Foundry uses to connect to backend and just return the same URL without any changes, because you don't want to change the URL in your scenario, and just want to log it.

Reference: https://opensource.hcltechsw.com/volt-mx-docs/docs/documentation/Foundry/voltmx_foundry_user_guide/Content/URL_Provider_Support_for_XML__JSON__SOAP_and_API_Proxy.html

Please see if these inputs will help. Thank you.

Thanks and Regards,

Venkata Raju Bankapalli

From DCRequest or DCResponse can't we get the reference to this? I mean in pre or post-processor we cannot log this?

Thanks.

@Venkata Raju Bankapalli, from url provider class we get the url before data replacement.. i have some path parameters..

i want to print the final url after path params are replaced.. how can I get that?

Thanks.