queryParameters.put(Constants.PARAM_RENDITION_FILTER, renditionFilter);
queryParameters.put(Constants.PARAM_MAX_ITEMS, (maxItems == null) ? null : maxItems.toString());
queryParameters.put(Constants.PARAM_SKIP_COUNT, (skipCount == null) ? null : skipCount.toString());
// post the query and parse results
Response resp = post(url, Constants.MEDIATYPE_QUERY, new Output() {
public void write(OutputStream out) throws Exception {
AtomEntryWriter.writeQuery(out, queryParameters);
}
});
AtomFeed feed = parse(resp.getStream(), AtomFeed.class);