public class FilterStreamParameters extends Object
Modifier and Type | Field and Description |
---|---|
protected StringBuffer |
follow |
protected StringBuffer |
locations |
protected boolean |
stallWarnings |
protected StringBuffer |
track |
Constructor and Description |
---|
FilterStreamParameters() |
Modifier and Type | Method and Description |
---|---|
org.springframework.social.twitter.api.AbstractStreamParameters |
addLocation(float west,
float south,
float east,
float north)
Add a location to the filter
Does not replace any existing locations in the filter.
|
FilterStreamParameters |
follow(long follow)
Add a user to follow in the stream.
|
String |
getFollowParameterValue() |
String |
getLocationsParameterValue() |
String |
getTrackParameterValue() |
boolean |
isValid()
Whether or not at least one of track, follow, or locations has values.
|
org.springframework.social.twitter.api.AbstractStreamParameters |
stallWarnings(boolean stallWarnings) |
MultiValueMap<String,String> |
toParameterMap() |
org.springframework.social.twitter.api.AbstractStreamParameters |
track(String track)
Add tracking keywords to the filter.
|
protected StringBuffer follow
protected StringBuffer track
protected StringBuffer locations
protected boolean stallWarnings
public FilterStreamParameters follow(long follow)
follow
- the Twitter user ID of a user to follow in the stream.public String getFollowParameterValue()
public boolean isValid()
public MultiValueMap<String,String> toParameterMap()
public org.springframework.social.twitter.api.AbstractStreamParameters track(String track)
track
- the keywords to track.public org.springframework.social.twitter.api.AbstractStreamParameters addLocation(float west, float south, float east, float north)
west
- the longitude of the western side of the location's bounding box.south
- the latitude of the southern side of the location's bounding box.east
- the longitude of the eastern side of the location's bounding box.north
- the latitude of the northern side of the location's bounding box.public org.springframework.social.twitter.api.AbstractStreamParameters stallWarnings(boolean stallWarnings)
public String getTrackParameterValue()
public String getLocationsParameterValue()