public class DefaultStreamingEndpoint extends BaseEndpoint implements StreamingEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
backfillable |
apiVersion, httpMethod, path, postParameters, queryParameters| Constructor and Description |
|---|
DefaultStreamingEndpoint(String path,
String httpMethod,
boolean backfillable)
All endpoints have delimited=length by default
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultParams() |
void |
delimited(boolean on) |
DefaultStreamingEndpoint |
filterLevel(Constants.FilterLevel filterLevel) |
boolean |
isBackfillable() |
DefaultStreamingEndpoint |
languages(List<String> languages)
Filter for public tweets on these languages.
|
void |
setBackfillCount(int backfillCount) |
void |
stallWarnings(boolean on) |
addPostParameter, addQueryParameter, generateParamString, getHttpMethod, getPath, getPath, getPostParamString, getQueryParamString, getURI, removePostParameter, removeQueryParameter, setApiVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetApiVersionaddPostParameter, addQueryParameter, getHttpMethod, getPostParamString, getQueryParamString, getURI, removePostParameter, removeQueryParameterpublic DefaultStreamingEndpoint(String path, String httpMethod, boolean backfillable)
path - must start with "/". Should not contain the api versionbackfillable - true if this endpoint can accept the "count" param for backfillingpublic boolean isBackfillable()
protected void addDefaultParams()
addDefaultParams in class BaseEndpointpublic final void delimited(boolean on)
public final void stallWarnings(boolean on)
public final void setBackfillCount(int backfillCount)
setBackfillCount in interface StreamingEndpointpublic DefaultStreamingEndpoint languages(List<String> languages)
languages - Valid BCP 47 (http://tools.ietf.org/html/bcp47) language identifiers,
and may represent any of the languages listed on Twitter's advanced search page
(https://twitter.com/search-advanced), or "und" if no language could be detected.
These strings should NOT be url-encoded.public DefaultStreamingEndpoint filterLevel(Constants.FilterLevel filterLevel)
Copyright © 2014. All Rights Reserved.