private String fetchOfferings ( ) { DiscovererFetchallResult allOfferings = null ; try { String discovererOutput = discovererClient . getRequest ( "fetch_all" , Collections . EMPTY_LIST ) ; ObjectMapper mapper = new ObjectMapper ( ) ; allOfferings = mapper . readValue ( discovererOutput , DiscovererFetchallResult . class ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } String offerings = allOfferings . offering ; return offerings ; }
Fetches the list offerings from the Discoverer