public interface LastfmWebServices
| Modifier and Type | Method and Description |
|---|---|
<T extends Serializable> |
execute(PostQuery<T> query)
Execute an authenticated POST Query.
|
<T extends Serializable> |
fetch(AuthenticatedGetQuery<T> query)
Fetch an authenticated GET Query.
|
<T extends Serializable> |
fetch(UnauthenticatedGetQuery<T> query)
Fetch an unauthenticated GET Query.
|
String |
getApiKey()
Get the current api key.
|
String |
getApiSecret()
Get the current api secret.
|
Fetcher |
getFetcher()
Get the current fetcher.
|
void |
setFetcher(Fetcher diskBufferedFetcher)
Sets the current fetcher.
|
<T extends Serializable> T fetch(UnauthenticatedGetQuery<T> query) throws LastfmWebServicesException
T - The return type of the query.query - The query.LastfmWebServicesException - If fetching the Query fails.<T extends Serializable> T fetch(AuthenticatedGetQuery<T> query) throws LastfmWebServicesException
T - The return type of the Query.query - The query.LastfmWebServicesException - If fetching the Query fails.<T extends Serializable> T execute(PostQuery<T> query) throws LastfmWebServicesException
T - The return type of the query.query - The query.LastfmWebServicesException - If executing the Query fails.Fetcher getFetcher()
Fetcher responsible for fetching the data.void setFetcher(Fetcher diskBufferedFetcher)
diskBufferedFetcherThe - Fetcher responsible for fetching the data.String getApiKey()
String getApiSecret()
Copyright © 2012. All Rights Reserved.