|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.twitter.api.FilterStreamParameters
public class FilterStreamParameters
Defines the parameters of a filtered stream. You must set at least one of track, follow, or locations.
Field Summary | |
---|---|
protected StringBuffer |
follow
|
protected StringBuffer |
locations
|
protected boolean |
stallWarnings
|
protected StringBuffer |
track
|
Constructor Summary | |
---|---|
FilterStreamParameters()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StringBuffer follow
protected StringBuffer track
protected StringBuffer locations
protected boolean stallWarnings
Constructor Detail |
---|
public FilterStreamParameters()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |