public abstract class AbstractFetcher extends Object implements Fetcher
| Modifier and Type | Field and Description |
|---|---|
protected URL |
baseUrl
The base URL, needed if you want to proxy requests somewhere.
|
protected DocumentBuilderFactory |
factory |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractFetcher() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildParameterString(Map<String,String> parameters) |
protected URL |
buildUrl(Map<String,String> parameters) |
protected HttpURLConnection |
openConnection(URL url) |
protected Document |
parseDoc(InputStream is)
Parse a
Document from an XML InputStream. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getWebRequestsPerSecond, postprotected URL baseUrl
protected final org.slf4j.Logger logger
protected final DocumentBuilderFactory factory
protected Document parseDoc(InputStream is) throws LastfmWebServicesException
Document from an XML InputStream.is - The InputStream to unmarshall.LastfmWebServicesException - Thrown if reading the document fails.protected HttpURLConnection openConnection(URL url) throws LastfmWebServicesException
LastfmWebServicesExceptionCopyright © 2012. All Rights Reserved.