Package twitter4j
Class OAuth2Authorization.OAuth2AuthorizationBuilder
java.lang.Object
twitter4j.OAuth2Authorization.OAuth2AuthorizationBuilder
- Enclosing class:
- OAuth2Authorization
Builder for
OAuth2Authorization
-
Method Summary
Modifier and TypeMethodDescriptionapplicationOnlyAuthEnabled
(boolean applicationOnlyAuthEnabled) build()
contributingTo
(long contributingTo) boolean
gzipEnabled
(boolean gzipEnabled) int
hashCode()
httpConnectionTimeout
(int httpConnectionTimeout) httpProxyHost
(String httpProxyHost) httpProxyPassword
(String httpProxyPassword) httpProxyPort
(int httpProxyPort) httpProxySocks
(boolean httpProxySocks) httpProxyUser
(String httpProxyUser) httpReadTimeout
(int httpReadTimeout) httpRetryCount
(int httpRetryCount) httpRetryIntervalSeconds
(int httpRetryIntervalSeconds) httpStreamingReadTimeout
(int httpStreamingReadTimeout) includeEntitiesEnabled
(boolean enabled) includeExtAltTextEnabled
(boolean enabled) jsonStoreEnabled
(boolean enabled) load
(Properties props) mBeanEnabled
(boolean enabled) oAuth2Scope
(String oAuth2Scope) oAuth2Token
(String oAuth2TokenType, String oAuth2AccessToken) oAuth2Token
(OAuth2Token oAuth2Token) oAuthAccessToken
(String oAuthAccessToken, String oAuthAccessTokenSecret) oAuthAccessToken
(AccessToken accessToken) oAuthConsumer
(String oAuthConsumerKey, String oAuthConsumerSecret) Registers a RateLimitStatusListener for account associated rate limitsRegisters a lambda action for account associated rate limitsprettyDebugEnabled
(boolean prettyDebugEnabled) toString()
trimUserEnabled
(boolean enabled) tweetModeExtended
(boolean enabled)
-
Method Details
-
build
- Returns:
- OAuth2Authorization instance
-
equals
-
hashCode
public int hashCode() -
toString
-
prettyDebugEnabled
public OAuth2Authorization.OAuth2AuthorizationBuilder prettyDebugEnabled(boolean prettyDebugEnabled) - Parameters:
prettyDebugEnabled
- enabled- Returns:
- this instance
-
gzipEnabled
- Parameters:
gzipEnabled
- enabled- Returns:
- this instance
-
applicationOnlyAuthEnabled
public OAuth2Authorization.OAuth2AuthorizationBuilder applicationOnlyAuthEnabled(boolean applicationOnlyAuthEnabled) - Parameters:
applicationOnlyAuthEnabled
- applicationOnlyAuthEnabled- Returns:
- this instance
-
load
- Parameters:
props
- props- Returns:
- this instance
-
httpProxyHost
- Parameters:
httpProxyHost
- http proxy host- Returns:
- this instance
-
httpProxyUser
- Parameters:
httpProxyUser
- http proxy user- Returns:
- this instance
-
httpProxyPassword
- Parameters:
httpProxyPassword
- http proxy password- Returns:
- this instance
-
httpProxyPort
- Parameters:
httpProxyPort
- http proxy port- Returns:
- this instance
-
httpProxySocks
- Parameters:
httpProxySocks
- http proxy socks- Returns:
- this instance
-
httpConnectionTimeout
public OAuth2Authorization.OAuth2AuthorizationBuilder httpConnectionTimeout(int httpConnectionTimeout) - Parameters:
httpConnectionTimeout
- http connection timeout in milliseconds- Returns:
- this instance
-
httpReadTimeout
- Parameters:
httpReadTimeout
- http read timeout in milliseconds- Returns:
- this instance
-
httpStreamingReadTimeout
public OAuth2Authorization.OAuth2AuthorizationBuilder httpStreamingReadTimeout(int httpStreamingReadTimeout) - Parameters:
httpStreamingReadTimeout
- http streaming timeout in milliseconds- Returns:
- this instance
-
httpRetryCount
- Parameters:
httpRetryCount
- http retry count- Returns:
- this instance
-
httpRetryIntervalSeconds
public OAuth2Authorization.OAuth2AuthorizationBuilder httpRetryIntervalSeconds(int httpRetryIntervalSeconds) - Parameters:
httpRetryIntervalSeconds
- http retry interval in seconds- Returns:
- this instance
-
oAuthConsumer
public OAuth2Authorization.OAuth2AuthorizationBuilder oAuthConsumer(String oAuthConsumerKey, String oAuthConsumerSecret) - Parameters:
oAuthConsumerKey
- OAuth consumer keyoAuthConsumerSecret
- OAuth consumer secret- Returns:
- this instance
-
oAuthAccessToken
public OAuth2Authorization.OAuth2AuthorizationBuilder oAuthAccessToken(String oAuthAccessToken, String oAuthAccessTokenSecret) - Parameters:
oAuthAccessToken
- OAuth access tokenoAuthAccessTokenSecret
- OAuth access token secret- Returns:
- this instance
-
oAuthAccessToken
- Parameters:
accessToken
- access token- Returns:
- this instance
-
oAuth2Token
public OAuth2Authorization.OAuth2AuthorizationBuilder oAuth2Token(String oAuth2TokenType, String oAuth2AccessToken) - Parameters:
oAuth2TokenType
- OAuth2 token typeoAuth2AccessToken
- OAuth2 access token- Returns:
- this instance
-
oAuth2Token
- Parameters:
oAuth2Token
- OAuth2 token- Returns:
- this instance
-
oAuth2Scope
- Parameters:
oAuth2Scope
- OAuth2 scope- Returns:
- this instance
-
contributingTo
- Parameters:
contributingTo
- contributing to user id- Returns:
- this instance
-
trimUserEnabled
- Parameters:
enabled
- trim user enabled- Returns:
- this instance
-
includeExtAltTextEnabled
- Parameters:
enabled
- include ext alt text enabled- Returns:
- this instance
-
tweetModeExtended
- Parameters:
enabled
- tweet mode extended- Returns:
- this instance
-
includeEntitiesEnabled
- Parameters:
enabled
- enabled- Returns:
- this instance
-
jsonStoreEnabled
- Parameters:
enabled
- enabled- Returns:
- this instance
-
mBeanEnabled
- Parameters:
enabled
- mbean enabled- Returns:
- this instance
-
onRateLimitStatus
public OAuth2Authorization.OAuth2AuthorizationBuilder onRateLimitStatus(Consumer<RateLimitStatusEvent> action) Registers a lambda action for account associated rate limits- Parameters:
action
- the action to be added- Returns:
- this instance
- Since:
- Twitter4J 4.0.4
- See Also:
-
onRateLimitReached
public OAuth2Authorization.OAuth2AuthorizationBuilder onRateLimitReached(Consumer<RateLimitStatusEvent> action) Registers a RateLimitStatusListener for account associated rate limits- Parameters:
action
- the action to be added- Returns:
- this instance
- Since:
- Twitter4J 4.0.4
- See Also:
-