Need your support in getting the playback rtsp url using wowza java APIs.

As per the article (https://www.wowza.com/docs/understanding-streaming-protocols-and-output-file-formats ), I can build the rtsp url from the server domain name, port, app name and stream name. But how to get these details from java code? Like I want to know what are the streams are running in a single application, how many applications are there in my server. Streams and application details.

Using these details, I will form my rtsp url dynamically.