twitter4j.conf

## Class ConfigurationBuilder

- java.lang.Object
- - twitter4j.conf.ConfigurationBuilder

    public final class ConfigurationBuilder
    extends Object

A builder that can be used to construct a twitter4j configuration with desired settings. This builder has sensible defaults such that `new ConfigurationBuilder().build()` would create a usable configuration. This configuration builder is useful for clients that wish to configure twitter4j in unit tests or from command line flags for example.

Author:
  John Sirois - john.sirois at gmail.com

### Constructor Summary

Constructors
Constructor and Description
`ConfigurationBuilder()`

### Method Summary

All Methods Instance Methods Concrete Methods
`Configuration` `build()`
`ConfigurationBuilder` `setApplicationOnlyAuthEnabled(boolean applicationOnlyAuthEnabled)`
`ConfigurationBuilder` `setAsyncNumThreads(int asyncNumThreads)`
`ConfigurationBuilder` `setContributingTo(long contributingTo)`
`ConfigurationBuilder` `setDaemonEnabled(boolean daemonEnabled)`
`ConfigurationBuilder` `setDebugEnabled(boolean debugEnabled)`
`ConfigurationBuilder` `setDispatcherImpl(String dispatcherImpl)`
`ConfigurationBuilder` `setGZIPEnabled(boolean gzipEnabled)`
`ConfigurationBuilder` `setHttpConnectionTimeout(int httpConnectionTimeout)`
`ConfigurationBuilder` `setHttpProxyHost(String httpProxyHost)`
`ConfigurationBuilder` `setHttpProxyPassword(String httpProxyPassword)`
`ConfigurationBuilder` `setHttpProxyPort(int httpProxyPort)`
`ConfigurationBuilder` `setHttpProxySocks(boolean httpProxySocks)`
`ConfigurationBuilder` `setHttpProxyUser(String httpProxyUser)`
`ConfigurationBuilder` `setHttpReadTimeout(int httpReadTimeout)`
`ConfigurationBuilder` `setHttpRetryCount(int httpRetryCount)`
`ConfigurationBuilder` `setHttpRetryIntervalSeconds(int httpRetryIntervalSeconds)`
`ConfigurationBuilder` `setHttpStreamingReadTimeout(int httpStreamingReadTimeout)`
`ConfigurationBuilder` `setIncludeEmailEnabled(boolean enabled)`
`ConfigurationBuilder` `setIncludeEntitiesEnabled(boolean enabled)`
`ConfigurationBuilder` `setIncludeExtAltTextEnabled(boolean enabled)`
`ConfigurationBuilder` `setIncludeMyRetweetEnabled(boolean enabled)`
`ConfigurationBuilder` `setJSONStoreEnabled(boolean enabled)`
`ConfigurationBuilder` `setMBeanEnabled(boolean enabled)`
`ConfigurationBuilder` `setMediaProvider(String mediaProvider)`
`ConfigurationBuilder` `setMediaProviderAPIKey(String mediaProviderAPIKey)`
`ConfigurationBuilder` `setMediaProviderParameters(Properties props)`
`ConfigurationBuilder` `setOAuth2AccessToken(String oAuth2AccessToken)`
`ConfigurationBuilder` `setOAuth2InvalidateTokenURL(String invalidateTokenURL)`
`ConfigurationBuilder` `setOAuth2Scope(String oAuth2Scope)`
`ConfigurationBuilder` `setOAuth2TokenType(String oAuth2TokenType)`
`ConfigurationBuilder` `setOAuth2TokenURL(String oAuth2TokenURL)`
`ConfigurationBuilder` `setOAuthAccessToken(String oAuthAccessToken)`
`ConfigurationBuilder` `setOAuthAccessTokenSecret(String oAuthAccessTokenSecret)`
`ConfigurationBuilder` `setOAuthAccessTokenURL(String oAuthAccessTokenURL)`
`ConfigurationBuilder` `setOAuthAuthenticationURL(String oAuthAuthenticationURL)`
`ConfigurationBuilder` `setOAuthAuthorizationURL(String oAuthAuthorizationURL)`
`ConfigurationBuilder` `setOAuthConsumerKey(String oAuthConsumerKey)`
`ConfigurationBuilder` `setOAuthConsumerSecret(String oAuthConsumerSecret)`
`ConfigurationBuilder` `setOAuthRequestTokenURL(String oAuthRequestTokenURL)`
`ConfigurationBuilder` `setPassword(String password)`
`ConfigurationBuilder` `setPrettyDebugEnabled(boolean prettyDebugEnabled)`
`ConfigurationBuilder` `setRestBaseURL(String restBaseURL)`
`ConfigurationBuilder` `setSiteStreamBaseURL(String siteStreamBaseURL)`
`ConfigurationBuilder` `setStreamBaseURL(String streamBaseURL)`
`ConfigurationBuilder` `setTrimUserEnabled(boolean enabled)`
`ConfigurationBuilder` `setTweetModeExtended(boolean enabled)`
`ConfigurationBuilder` `setUploadBaseURL(String uploadBaseURL)`
`ConfigurationBuilder` `setUser(String user)`
`ConfigurationBuilder` `setUserStreamBaseURL(String userStreamBaseURL)`
`ConfigurationBuilder` `setUserStreamRepliesAllEnabled(boolean enabled)`
`ConfigurationBuilder` `setUserStreamWithFollowingsEnabled(boolean enabled)`

### Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Constructor Detail

#### ConfigurationBuilder

    public ConfigurationBuilder()

### Method Detail

#### setPrettyDebugEnabled

    public ConfigurationBuilder setPrettyDebugEnabled(boolean prettyDebugEnabled)

#### setGZIPEnabled

    public ConfigurationBuilder setGZIPEnabled(boolean gzipEnabled)

#### setDebugEnabled

    public ConfigurationBuilder setDebugEnabled(boolean debugEnabled)

#### setApplicationOnlyAuthEnabled

    public ConfigurationBuilder setApplicationOnlyAuthEnabled(boolean applicationOnlyAuthEnabled)

#### setUser

    public ConfigurationBuilder setUser(String user)

#### setPassword

    public ConfigurationBuilder setPassword(String password)

#### setHttpProxyHost

    public ConfigurationBuilder setHttpProxyHost(String httpProxyHost)

#### setHttpProxyUser

    public ConfigurationBuilder setHttpProxyUser(String httpProxyUser)

#### setHttpProxyPassword

    public ConfigurationBuilder setHttpProxyPassword(String httpProxyPassword)

#### setHttpProxyPort

    public ConfigurationBuilder setHttpProxyPort(int httpProxyPort)

#### setHttpProxySocks

    public ConfigurationBuilder setHttpProxySocks(boolean httpProxySocks)

#### setHttpConnectionTimeout

    public ConfigurationBuilder setHttpConnectionTimeout(int httpConnectionTimeout)

#### setHttpReadTimeout

    public ConfigurationBuilder setHttpReadTimeout(int httpReadTimeout)

#### setHttpStreamingReadTimeout

    public ConfigurationBuilder setHttpStreamingReadTimeout(int httpStreamingReadTimeout)

#### setHttpRetryCount

    public ConfigurationBuilder setHttpRetryCount(int httpRetryCount)

#### setHttpRetryIntervalSeconds

    public ConfigurationBuilder setHttpRetryIntervalSeconds(int httpRetryIntervalSeconds)

#### setOAuthConsumerKey

    public ConfigurationBuilder setOAuthConsumerKey(String oAuthConsumerKey)

#### setOAuthConsumerSecret

    public ConfigurationBuilder setOAuthConsumerSecret(String oAuthConsumerSecret)

#### setOAuthAccessToken

    public ConfigurationBuilder setOAuthAccessToken(String oAuthAccessToken)

#### setOAuthAccessTokenSecret

    public ConfigurationBuilder setOAuthAccessTokenSecret(String oAuthAccessTokenSecret)

#### setOAuth2TokenType

    public ConfigurationBuilder setOAuth2TokenType(String oAuth2TokenType)

#### setOAuth2AccessToken

    public ConfigurationBuilder setOAuth2AccessToken(String oAuth2AccessToken)

#### setOAuth2Scope

    public ConfigurationBuilder setOAuth2Scope(String oAuth2Scope)

#### setOAuthRequestTokenURL

    public ConfigurationBuilder setOAuthRequestTokenURL(String oAuthRequestTokenURL)

#### setOAuthAuthorizationURL

    public ConfigurationBuilder setOAuthAuthorizationURL(String oAuthAuthorizationURL)

#### setOAuthAccessTokenURL

    public ConfigurationBuilder setOAuthAccessTokenURL(String oAuthAccessTokenURL)

#### setOAuthAuthenticationURL

    public ConfigurationBuilder setOAuthAuthenticationURL(String oAuthAuthenticationURL)

#### setOAuth2TokenURL

    public ConfigurationBuilder setOAuth2TokenURL(String oAuth2TokenURL)

#### setOAuth2InvalidateTokenURL

    public ConfigurationBuilder setOAuth2InvalidateTokenURL(String invalidateTokenURL)

#### setRestBaseURL

    public ConfigurationBuilder setRestBaseURL(String restBaseURL)

#### setUploadBaseURL

    public ConfigurationBuilder setUploadBaseURL(String uploadBaseURL)

#### setStreamBaseURL

    public ConfigurationBuilder setStreamBaseURL(String streamBaseURL)

#### setUserStreamBaseURL

    public ConfigurationBuilder setUserStreamBaseURL(String userStreamBaseURL)

#### setSiteStreamBaseURL

    public ConfigurationBuilder setSiteStreamBaseURL(String siteStreamBaseURL)

#### setAsyncNumThreads

    public ConfigurationBuilder setAsyncNumThreads(int asyncNumThreads)

#### setDaemonEnabled

    public ConfigurationBuilder setDaemonEnabled(boolean daemonEnabled)

#### setContributingTo

    public ConfigurationBuilder setContributingTo(long contributingTo)

#### setDispatcherImpl

    public ConfigurationBuilder setDispatcherImpl(String dispatcherImpl)

#### setTrimUserEnabled

    public ConfigurationBuilder setTrimUserEnabled(boolean enabled)

#### setIncludeExtAltTextEnabled

    public ConfigurationBuilder setIncludeExtAltTextEnabled(boolean enabled)

#### setTweetModeExtended

    public ConfigurationBuilder setTweetModeExtended(boolean enabled)

#### setIncludeMyRetweetEnabled

    public ConfigurationBuilder setIncludeMyRetweetEnabled(boolean enabled)

#### setIncludeEntitiesEnabled

    public ConfigurationBuilder setIncludeEntitiesEnabled(boolean enabled)

#### setIncludeEmailEnabled

    public ConfigurationBuilder setIncludeEmailEnabled(boolean enabled)

#### setJSONStoreEnabled

    public ConfigurationBuilder setJSONStoreEnabled(boolean enabled)

#### setMBeanEnabled

    public ConfigurationBuilder setMBeanEnabled(boolean enabled)

#### setUserStreamRepliesAllEnabled

    public ConfigurationBuilder setUserStreamRepliesAllEnabled(boolean enabled)

#### setUserStreamWithFollowingsEnabled

    public ConfigurationBuilder setUserStreamWithFollowingsEnabled(boolean enabled)

#### setMediaProvider

    public ConfigurationBuilder setMediaProvider(String mediaProvider)

#### setMediaProviderAPIKey

    public ConfigurationBuilder setMediaProviderAPIKey(String mediaProviderAPIKey)

#### setMediaProviderParameters

    public ConfigurationBuilder setMediaProviderParameters(Properties props)

#### build

    public Configuration build()