public Collection < String > getAllProperties ( ) { return wrappedSubmit ( new Callable < Collection < String > > ( ) { @ Override public Collection < String > call ( ) throws Exception { Collection < String > allProperties = new HashSet < String > ( ) ; ObjectMapper mapper = new ObjectMapper ( ) ; List < XmlProperty > xmlproperties = new ArrayList < XmlProperty > ( ) ; try { xmlproperties = mapper . readValue ( service . path ( resourceProperties ) . accept ( MediaType . APPLICATION_JSON ) . get ( String . class ) , new TypeReference < List < XmlProperty > > ( ) { } ) ; } catch ( JsonParseException e ) { // TODO Auto-generated catch block e . printStackTrace ( ) ; } catch ( JsonMappingException e ) { // TODO Auto-generated catch block e . printStackTrace ( ) ; } catch ( ClientHandlerException e ) { // TODO Auto-generated catch block e . printStackTrace ( ) ; } catch ( IOException e ) { // TODO Auto-generated catch block e . printStackTrace ( ) ; } for ( XmlProperty xmlproperty : xmlproperties ) { allProperties . add ( xmlproperty . getName ( ) ) ; } return allProperties ; } } ) ; }
Get a list of names of all the properties currently present on the channelfinder service .