public class TmblrPhotoConsumer extends Object implements SiteSpecificConsumer
Constructor and Description |
---|
TmblrPhotoConsumer()
Use the
DefaultTokenFactory to load the default api token |
TmblrPhotoConsumer(TumblrAPIToken token)
Construct with the given api token
|
Modifier and Type | Method and Description |
---|---|
boolean |
canConsume(URL url)
Determine whether the given URL can be handled by this consumer.
|
List<URL> |
consume(URL url)
Get the data urls at the given URL.
|
public TmblrPhotoConsumer()
DefaultTokenFactory
to load the default api tokenpublic TmblrPhotoConsumer(TumblrAPIToken token)
token
- the api tokenpublic boolean canConsume(URL url)
SiteSpecificConsumer
canConsume
in interface SiteSpecificConsumer
url
- the url to testpublic List<URL> consume(URL url)
SiteSpecificConsumer
consume
in interface SiteSpecificConsumer
url
- the url to test