public List < SearchResult > search ( String query ) throws MovieMeterException { String url = buildSearchUrl ( query ) ; try { return mapper . readValue ( requestWebPage ( url ) , new TypeReference < List < SearchResult > > ( ) { } ) ; } catch ( IOException ex ) { throw new MovieMeterException ( ApiExceptionType . MAPPING_FAILED , "Failed to map search results" , url , ex ) ; } }
Search for a movie