public ResultSet authedSearch(SearchQuery searchQuery) throws N0ticeException { OAuthRequest request = createOauthRequest(Verb.GET, searchUrlBuilder.toUrl(searchQuery)); oauthSignRequest(request); Response response = request.send(); final String responseBody = response.getBody(); if (response.getCode() == 200) { return searchParser.parseSearchResults(responseBody); } handleExceptions(response); throw new N0ticeException(response.getBody()); }
public NoticeboardResultSet searchNoticeboards(NoticeboardSearchQuery noticeboardSearchQuery) throws N0ticeException { return noticeboardParser.parseNoticeboardSearchResults( httpFetcher.fetchContent(searchUrlBuilder.toUrl(noticeboardSearchQuery), UTF_8)); }
public ResultSet search(SearchQuery searchQuery) throws N0ticeException { return searchParser.parseSearchResults( httpFetcher.fetchContent(searchUrlBuilder.toUrl(searchQuery), UTF_8)); }