|
Spring Social Twitter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 java.lang.StringBuffer |
follow
|
protected java.lang.StringBuffer |
locations
|
protected boolean |
stallWarnings
|
protected java.lang.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. |
java.lang.String |
getFollowParameterValue()
|
java.lang.String |
getLocationsParameterValue()
|
java.lang.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)
|
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> |
toParameterMap()
|
org.springframework.social.twitter.api.AbstractStreamParameters |
track(java.lang.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 java.lang.StringBuffer follow
protected java.lang.StringBuffer track
protected java.lang.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 java.lang.String getFollowParameterValue()
public boolean isValid()
public org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> toParameterMap()
public org.springframework.social.twitter.api.AbstractStreamParameters track(java.lang.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 java.lang.String getTrackParameterValue()
public java.lang.String getLocationsParameterValue()
|
Spring Social Twitter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||