Issue 830: Add mediaList client query methods

This commit is contained in:
Andrew Donald Kennedy 2012-03-20 19:09:12 +00:00
parent d081f771b4
commit 07c5dabceb
2 changed files with 28 additions and 0 deletions

View File

@ -204,4 +204,18 @@ public interface QueryAsyncClient {
@JAXBResponseParser
@ExceptionParser(ThrowVCloudErrorOn4xx.class)
ListenableFuture<QueryResultRecords> vmsQuery(@QueryParam("filter") String filter);
@GET
@Path("/mediaList/query")
@Consumes
@JAXBResponseParser
@ExceptionParser(ThrowVCloudErrorOn4xx.class)
ListenableFuture<QueryResultRecords> mediaListQueryAll();
@GET
@Path("/mediaList/query")
@Consumes
@JAXBResponseParser
@ExceptionParser(ThrowVCloudErrorOn4xx.class)
ListenableFuture<QueryResultRecords> mediaListQuery(@QueryParam("filter") String filter);
}

View File

@ -172,5 +172,19 @@ public interface QueryClient {
/** @see #queryAll() */
QueryResultRecords vmsQuery(String filter);
/**
* Retrieves a list of {@link Medias by using REST API general QueryHandler.
*
* <pre>
* GET /mediaList/query
* </pre>
*
* @see #queryAll(String)
*/
QueryResultRecords mediaListQueryAll();
/** @see #queryAll() */
QueryResultRecords mediaListQuery(String filter);
}