@Configuration @EnableConfigurationProperties(value=TwitterGeoFunctionProperties.class) @Import(value=TwitterConnectionConfiguration.class) public class TwitterGeoFunctionConfiguration extends Object
Constructor and Description |
---|
TwitterGeoFunctionConfiguration() |
Modifier and Type | Method and Description |
---|---|
Function<org.springframework.messaging.Message<?>,twitter4j.GeoQuery> |
messageToGeoQueryFunction(TwitterGeoFunctionProperties geoProperties) |
Function<org.springframework.messaging.Message<?>,org.springframework.messaging.Message<byte[]>> |
twitterGeoFunction(Function<org.springframework.messaging.Message<?>,twitter4j.GeoQuery> toGeoQuery,
Function<twitter4j.GeoQuery,List<twitter4j.Place>> places,
Function<Object,org.springframework.messaging.Message<byte[]>> managedJson) |
Function<twitter4j.GeoQuery,List<twitter4j.Place>> |
twitterReverseGeocodeFunction(twitter4j.Twitter twitter) |
Function<twitter4j.GeoQuery,List<twitter4j.Place>> |
twitterSearchPlacesFunction(twitter4j.Twitter twitter) |
@Bean public Function<org.springframework.messaging.Message<?>,twitter4j.GeoQuery> messageToGeoQueryFunction(TwitterGeoFunctionProperties geoProperties)
@Bean @ConditionalOnProperty(name="twitter.geo.search.type", havingValue="search", matchIfMissing=true) public Function<twitter4j.GeoQuery,List<twitter4j.Place>> twitterSearchPlacesFunction(twitter4j.Twitter twitter)
@Bean @ConditionalOnProperty(name="twitter.geo.search.type", havingValue="reverse") public Function<twitter4j.GeoQuery,List<twitter4j.Place>> twitterReverseGeocodeFunction(twitter4j.Twitter twitter)
@Bean public Function<org.springframework.messaging.Message<?>,org.springframework.messaging.Message<byte[]>> twitterGeoFunction(Function<org.springframework.messaging.Message<?>,twitter4j.GeoQuery> toGeoQuery, Function<twitter4j.GeoQuery,List<twitter4j.Place>> places, Function<Object,org.springframework.messaging.Message<byte[]>> managedJson)
Copyright © 2022. All rights reserved.