if (StringUtils.hasText(track) || StringUtils.hasText(follow) || StringUtils.hasText(locations)) {
path = "statuses/filter.json";
}
URIBuilder b = URIBuilder.fromUri(API_URL_BASE + path);
if (delimited) {
b.queryParam("delimited", "length");
}
if (stallWarnings) {
b.queryParam("stall_warnings", "true");
}
if (!FilterLevel.none.equals(filterLevel)) {
b.queryParam("filter_level", filterLevel.toString());
}
if (StringUtils.hasText(getLanguage())) {
b.queryParam("language", getLanguage());
}
if (StringUtils.hasText(track)) {
b.queryParam("track", track);
}
if (StringUtils.hasText(follow)) {
b.queryParam("follow", follow);
}
if (StringUtils.hasText(locations)) {
b.queryParam("locations", locations);
}
return b.build();
}