I think you are asking if there is away to retrieve the application url in a java action? If thats the case, all you have to do is add these two lines of code in your java action.
and then in the "Begin user code"
String url = Core.getConfiguration().getApplicationRootUrl();
I don't think its possible to retrieve that url. This question is old but I think is still the case https://forum.mendix.com/link/questions/3161
Thank you for you answer. Indeed this will help to get the application root url.
However I need to iterate through page url, that may be configured in properties, if it's possible of course. See the image below:
I need that to build a sitemap