public class ArticleRequest extends Request
Request.ApiTypecom.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ArticleRequest(String url)
Creates a
Request to extract an article of a given URL. |
| Modifier and Type | Method and Description |
|---|---|
ArticleRequest |
asHtml()
Extract html instead of plain text.
|
ArticleRequest |
dontStripAds()
Don't strip any inline ads.
|
Request.ApiType |
getApiType() |
ArticleRequest |
withComments()
Find the comments and identify count (experimental).
|
ArticleRequest |
withSummary()
Extract a summary text.
|
ArticleRequest |
withTags()
Generate tags for the extracted story.
|
ArticleRequest |
withTimeout(long timeout)
Overrides the default API timeout of 5000ms.
|
appendRawPath, build, buildAuthority, buildRelativeUrl, clone, equals, getAll, getFirst, getFragment, getHost, getPathParts, getPort, getRawPath, getScheme, hashCode, set, setFragment, setHost, setPathParts, setPort, setRawPath, setScheme, toPathParts, toString, toURI, toURL, toURLentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuespublic final ArticleRequest asHtml()
public final ArticleRequest dontStripAds()
public final ArticleRequest withTags()
public final ArticleRequest withComments()
public final ArticleRequest withSummary()
public final ArticleRequest withTimeout(long timeout)
timeout - The timeout in milliseconds.public final Request.ApiType getApiType()
getApiType in class RequestCopyright © 2013. All Rights Reserved.