HTTProvider that returns server, vhost, application, appInstance, stream conn. counts

I’ve create a webservice refer to http://community.wowza.com/t/-/52

how can I build a function in webservice return the result like to access http://[wowza-ip-address]:8086/connectioncounts?flat, is to use com.wowza.wms.mediacaster.MediaCasterStreamManager?

some example code will be very appreciated! I’m new to wowza and java.

I can use Wowza IDE.

I want the webservice can tell me a specified stream exists or not, or has been published?