class ConfigurationBase extends java.lang.Object implements Configuration, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
(package private) class |
ConfigurationBase.MyHttpClientConfiguration |
Modifier and Type | Field and Description |
---|---|
private boolean |
applicationOnlyAuthEnabled |
private int |
asyncNumThreads |
private long |
contributingTo |
private boolean |
daemonEnabled |
private boolean |
debug |
private java.lang.String |
dispatcherImpl |
private HttpClientConfiguration |
httpConf |
private int |
httpRetryCount |
private int |
httpRetryIntervalSeconds |
private int |
httpStreamingReadTimeout |
private boolean |
includeEmailEnabled |
private boolean |
includeEntitiesEnabled |
private boolean |
includeExtAltTextEnabled |
private boolean |
includeMyRetweetEnabled |
private static java.util.List<ConfigurationBase> |
instances |
private boolean |
jsonStoreEnabled |
private java.lang.String |
loggerFactory |
private boolean |
mbeanEnabled |
private java.lang.String |
mediaProvider |
private java.lang.String |
mediaProviderAPIKey |
private java.util.Properties |
mediaProviderParameters |
private java.lang.String |
oAuth2AccessToken |
private java.lang.String |
oAuth2InvalidateTokenURL |
private java.lang.String |
oAuth2Scope |
private java.lang.String |
oAuth2TokenType |
private java.lang.String |
oAuth2TokenURL |
private java.lang.String |
oAuthAccessToken |
private java.lang.String |
oAuthAccessTokenSecret |
private java.lang.String |
oAuthAccessTokenURL |
private java.lang.String |
oAuthAuthenticationURL |
private java.lang.String |
oAuthAuthorizationURL |
private java.lang.String |
oAuthConsumerKey |
private java.lang.String |
oAuthConsumerSecret |
private java.lang.String |
oAuthRequestTokenURL |
private java.lang.String |
password |
private java.lang.String |
restBaseURL |
private static long |
serialVersionUID |
private java.lang.String |
siteStreamBaseURL |
private boolean |
stallWarningsEnabled |
private java.lang.String |
streamBaseURL |
private java.lang.String |
streamThreadName |
private boolean |
trimUserEnabled |
private boolean |
tweetModeExtended |
private java.lang.String |
uploadBaseURL |
private java.lang.String |
user |
private java.lang.String |
userStreamBaseURL |
private boolean |
userStreamRepliesAllEnabled |
private boolean |
userStreamWithFollowingsEnabled |
Modifier | Constructor and Description |
---|---|
protected |
ConfigurationBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
cacheInstance() |
private static void |
cacheInstance(ConfigurationBase conf) |
void |
dumpConfiguration() |
boolean |
equals(java.lang.Object o) |
(package private) static java.lang.String |
fixURL(boolean useSSL,
java.lang.String url) |
int |
getAsyncNumThreads() |
long |
getContributingTo() |
java.lang.String |
getDispatcherImpl() |
HttpClientConfiguration |
getHttpClientConfiguration() |
int |
getHttpStreamingReadTimeout() |
private static ConfigurationBase |
getInstance(ConfigurationBase configurationBase) |
java.lang.String |
getLoggerFactory() |
java.lang.String |
getMediaProvider() |
java.lang.String |
getMediaProviderAPIKey() |
java.util.Properties |
getMediaProviderParameters() |
java.lang.String |
getOAuth2AccessToken() |
java.lang.String |
getOAuth2InvalidateTokenURL() |
java.lang.String |
getOAuth2Scope() |
java.lang.String |
getOAuth2TokenType() |
java.lang.String |
getOAuth2TokenURL() |
java.lang.String |
getOAuthAccessToken() |
java.lang.String |
getOAuthAccessTokenSecret() |
java.lang.String |
getOAuthAccessTokenURL() |
java.lang.String |
getOAuthAuthenticationURL() |
java.lang.String |
getOAuthAuthorizationURL() |
java.lang.String |
getOAuthConsumerKey() |
java.lang.String |
getOAuthConsumerSecret() |
java.lang.String |
getOAuthRequestTokenURL() |
java.lang.String |
getPassword() |
java.lang.String |
getRestBaseURL() |
java.lang.String |
getSiteStreamBaseURL() |
java.lang.String |
getStreamBaseURL() |
java.lang.String |
getStreamThreadName() |
java.lang.String |
getUploadBaseURL() |
java.lang.String |
getUser() |
java.lang.String |
getUserStreamBaseURL() |
int |
hashCode() |
boolean |
isApplicationOnlyAuthEnabled() |
boolean |
isDaemonEnabled() |
boolean |
isDebugEnabled() |
boolean |
isIncludeEmailEnabled() |
boolean |
isIncludeEntitiesEnabled() |
boolean |
isIncludeExtAltTextEnabled() |
boolean |
isIncludeMyRetweetEnabled() |
boolean |
isJSONStoreEnabled() |
boolean |
isMBeanEnabled() |
boolean |
isStallWarningsEnabled() |
boolean |
isTrimUserEnabled() |
boolean |
isTweetModeExtended() |
boolean |
isUserStreamRepliesAllEnabled() |
boolean |
isUserStreamWithFollowingsEnabled() |
protected java.lang.Object |
readResolve() |
protected void |
setApplicationOnlyAuthEnabled(boolean applicationOnlyAuthEnabled) |
protected void |
setAsyncNumThreads(int asyncNumThreads) |
protected void |
setContributingTo(long contributingTo) |
protected void |
setDaemonEnabled(boolean daemonEnabled) |
protected void |
setDebug(boolean debug) |
protected void |
setDispatcherImpl(java.lang.String dispatcherImpl) |
protected void |
setGZIPEnabled(boolean gzipEnabled) |
protected void |
setHttpConnectionTimeout(int connectionTimeout) |
protected void |
setHttpProxyHost(java.lang.String proxyHost) |
protected void |
setHttpProxyPassword(java.lang.String proxyPassword) |
protected void |
setHttpProxyPort(int proxyPort) |
protected void |
setHttpProxySocks(boolean isSocksProxy) |
protected void |
setHttpProxyUser(java.lang.String proxyUser) |
protected void |
setHttpReadTimeout(int readTimeout) |
protected void |
setHttpRetryCount(int retryCount) |
protected void |
setHttpRetryIntervalSeconds(int retryIntervalSeconds) |
protected void |
setHttpStreamingReadTimeout(int httpStreamingReadTimeout) |
protected void |
setIncludeEmailEnabled(boolean includeEmailEnabled) |
protected void |
setIncludeEntitiesEnabled(boolean includeEntitiesEnabled) |
void |
setIncludeExtAltTextEnabled(boolean enabled) |
void |
setIncludeMyRetweetEnabled(boolean enabled) |
protected void |
setJSONStoreEnabled(boolean enabled) |
protected void |
setLoggerFactory(java.lang.String loggerImpl) |
protected void |
setMBeanEnabled(boolean enabled) |
protected void |
setMediaProvider(java.lang.String mediaProvider) |
protected void |
setMediaProviderAPIKey(java.lang.String mediaProviderAPIKey) |
protected void |
setMediaProviderParameters(java.util.Properties props) |
protected void |
setOAuth2AccessToken(java.lang.String oAuth2AccessToken) |
protected void |
setOAuth2InvalidateTokenURL(java.lang.String oAuth2InvalidateTokenURL) |
protected void |
setOAuth2Scope(java.lang.String oAuth2Scope) |
protected void |
setOAuth2TokenType(java.lang.String oAuth2TokenType) |
protected void |
setOAuth2TokenURL(java.lang.String oAuth2TokenURL) |
protected void |
setOAuthAccessToken(java.lang.String oAuthAccessToken) |
protected void |
setOAuthAccessTokenSecret(java.lang.String oAuthAccessTokenSecret) |
protected void |
setOAuthAccessTokenURL(java.lang.String oAuthAccessTokenURL) |
protected void |
setOAuthAuthenticationURL(java.lang.String oAuthAuthenticationURL) |
protected void |
setOAuthAuthorizationURL(java.lang.String oAuthAuthorizationURL) |
protected void |
setOAuthConsumerKey(java.lang.String oAuthConsumerKey) |
protected void |
setOAuthConsumerSecret(java.lang.String oAuthConsumerSecret) |
protected void |
setOAuthRequestTokenURL(java.lang.String oAuthRequestTokenURL) |
protected void |
setPassword(java.lang.String password) |
protected void |
setPrettyDebugEnabled(boolean prettyDebug) |
protected void |
setRestBaseURL(java.lang.String restBaseURL) |
protected void |
setSiteStreamBaseURL(java.lang.String siteStreamBaseURL) |
protected void |
setStallWarningsEnabled(boolean stallWarningsEnabled) |
protected void |
setStreamBaseURL(java.lang.String streamBaseURL) |
protected void |
setStreamThreadName(java.lang.String streamThreadName) |
void |
setTrimUserEnabled(boolean enabled) |
void |
setTweetModeExtended(boolean enabled) |
protected void |
setUploadBaseURL(java.lang.String uploadBaseURL) |
protected void |
setUser(java.lang.String user) |
protected void |
setUserStreamBaseURL(java.lang.String siteStreamBaseURL) |
protected void |
setUserStreamRepliesAllEnabled(boolean enabled) |
protected void |
setUserStreamWithFollowingsEnabled(boolean enabled) |
java.lang.String |
toString() |
private static final long serialVersionUID
private boolean debug
private java.lang.String user
private java.lang.String password
private HttpClientConfiguration httpConf
private int httpStreamingReadTimeout
private int httpRetryCount
private int httpRetryIntervalSeconds
private java.lang.String oAuthConsumerKey
private java.lang.String oAuthConsumerSecret
private java.lang.String oAuthAccessToken
private java.lang.String oAuthAccessTokenSecret
private java.lang.String oAuth2TokenType
private java.lang.String oAuth2AccessToken
private java.lang.String oAuth2Scope
private java.lang.String oAuthRequestTokenURL
private java.lang.String oAuthAuthorizationURL
private java.lang.String oAuthAccessTokenURL
private java.lang.String oAuthAuthenticationURL
private java.lang.String oAuth2TokenURL
private java.lang.String oAuth2InvalidateTokenURL
private java.lang.String restBaseURL
private java.lang.String streamBaseURL
private java.lang.String userStreamBaseURL
private java.lang.String siteStreamBaseURL
private java.lang.String uploadBaseURL
private java.lang.String dispatcherImpl
private int asyncNumThreads
private java.lang.String loggerFactory
private long contributingTo
private boolean includeMyRetweetEnabled
private boolean includeEntitiesEnabled
private boolean trimUserEnabled
private boolean includeExtAltTextEnabled
private boolean tweetModeExtended
private boolean includeEmailEnabled
private boolean jsonStoreEnabled
private boolean mbeanEnabled
private boolean userStreamRepliesAllEnabled
private boolean userStreamWithFollowingsEnabled
private boolean stallWarningsEnabled
private boolean applicationOnlyAuthEnabled
private java.lang.String mediaProvider
private java.lang.String mediaProviderAPIKey
private java.util.Properties mediaProviderParameters
private boolean daemonEnabled
private java.lang.String streamThreadName
private static final java.util.List<ConfigurationBase> instances
public void dumpConfiguration()
public final boolean isDebugEnabled()
isDebugEnabled
in interface Configuration
protected final void setDebug(boolean debug)
public final java.lang.String getUser()
getUser
in interface AuthorizationConfiguration
getUser
in interface Configuration
protected final void setUser(java.lang.String user)
public final java.lang.String getPassword()
getPassword
in interface AuthorizationConfiguration
getPassword
in interface Configuration
public HttpClientConfiguration getHttpClientConfiguration()
getHttpClientConfiguration
in interface Configuration
protected final void setPassword(java.lang.String password)
protected final void setPrettyDebugEnabled(boolean prettyDebug)
protected final void setGZIPEnabled(boolean gzipEnabled)
protected final void setHttpProxyHost(java.lang.String proxyHost)
protected final void setHttpProxyUser(java.lang.String proxyUser)
protected final void setHttpProxyPassword(java.lang.String proxyPassword)
protected final void setHttpProxyPort(int proxyPort)
protected final void setHttpProxySocks(boolean isSocksProxy)
protected final void setHttpConnectionTimeout(int connectionTimeout)
protected final void setHttpReadTimeout(int readTimeout)
public int getHttpStreamingReadTimeout()
getHttpStreamingReadTimeout
in interface Configuration
protected final void setHttpStreamingReadTimeout(int httpStreamingReadTimeout)
protected final void setHttpRetryCount(int retryCount)
protected final void setHttpRetryIntervalSeconds(int retryIntervalSeconds)
public final java.lang.String getOAuthConsumerKey()
getOAuthConsumerKey
in interface AuthorizationConfiguration
getOAuthConsumerKey
in interface Configuration
protected final void setOAuthConsumerKey(java.lang.String oAuthConsumerKey)
public final java.lang.String getOAuthConsumerSecret()
getOAuthConsumerSecret
in interface AuthorizationConfiguration
getOAuthConsumerSecret
in interface Configuration
protected final void setOAuthConsumerSecret(java.lang.String oAuthConsumerSecret)
public java.lang.String getOAuthAccessToken()
getOAuthAccessToken
in interface AuthorizationConfiguration
getOAuthAccessToken
in interface Configuration
protected final void setOAuthAccessToken(java.lang.String oAuthAccessToken)
public java.lang.String getOAuthAccessTokenSecret()
getOAuthAccessTokenSecret
in interface AuthorizationConfiguration
getOAuthAccessTokenSecret
in interface Configuration
protected final void setOAuthAccessTokenSecret(java.lang.String oAuthAccessTokenSecret)
public java.lang.String getOAuth2TokenType()
getOAuth2TokenType
in interface AuthorizationConfiguration
getOAuth2TokenType
in interface Configuration
protected final void setOAuth2TokenType(java.lang.String oAuth2TokenType)
public java.lang.String getOAuth2AccessToken()
getOAuth2AccessToken
in interface AuthorizationConfiguration
getOAuth2AccessToken
in interface Configuration
public java.lang.String getOAuth2Scope()
getOAuth2Scope
in interface Configuration
protected final void setOAuth2AccessToken(java.lang.String oAuth2AccessToken)
protected final void setOAuth2Scope(java.lang.String oAuth2Scope)
public final int getAsyncNumThreads()
getAsyncNumThreads
in interface Configuration
protected final void setAsyncNumThreads(int asyncNumThreads)
public final long getContributingTo()
getContributingTo
in interface Configuration
protected final void setContributingTo(long contributingTo)
public java.lang.String getRestBaseURL()
getRestBaseURL
in interface Configuration
protected final void setRestBaseURL(java.lang.String restBaseURL)
public java.lang.String getUploadBaseURL()
getUploadBaseURL
in interface Configuration
protected final void setUploadBaseURL(java.lang.String uploadBaseURL)
public java.lang.String getStreamBaseURL()
getStreamBaseURL
in interface Configuration
protected final void setStreamBaseURL(java.lang.String streamBaseURL)
public java.lang.String getUserStreamBaseURL()
getUserStreamBaseURL
in interface Configuration
protected final void setUserStreamBaseURL(java.lang.String siteStreamBaseURL)
public java.lang.String getSiteStreamBaseURL()
getSiteStreamBaseURL
in interface Configuration
protected final void setSiteStreamBaseURL(java.lang.String siteStreamBaseURL)
public java.lang.String getOAuthRequestTokenURL()
getOAuthRequestTokenURL
in interface Configuration
protected final void setOAuthRequestTokenURL(java.lang.String oAuthRequestTokenURL)
public java.lang.String getOAuthAuthorizationURL()
getOAuthAuthorizationURL
in interface Configuration
protected final void setOAuthAuthorizationURL(java.lang.String oAuthAuthorizationURL)
public java.lang.String getOAuthAccessTokenURL()
getOAuthAccessTokenURL
in interface Configuration
protected final void setOAuthAccessTokenURL(java.lang.String oAuthAccessTokenURL)
public java.lang.String getOAuthAuthenticationURL()
getOAuthAuthenticationURL
in interface Configuration
protected final void setOAuthAuthenticationURL(java.lang.String oAuthAuthenticationURL)
public java.lang.String getOAuth2TokenURL()
getOAuth2TokenURL
in interface Configuration
protected final void setOAuth2TokenURL(java.lang.String oAuth2TokenURL)
public java.lang.String getOAuth2InvalidateTokenURL()
getOAuth2InvalidateTokenURL
in interface Configuration
protected final void setOAuth2InvalidateTokenURL(java.lang.String oAuth2InvalidateTokenURL)
public java.lang.String getDispatcherImpl()
getDispatcherImpl
in interface Configuration
protected final void setDispatcherImpl(java.lang.String dispatcherImpl)
public java.lang.String getLoggerFactory()
getLoggerFactory
in interface Configuration
public boolean isIncludeEntitiesEnabled()
isIncludeEntitiesEnabled
in interface Configuration
protected void setIncludeEntitiesEnabled(boolean includeEntitiesEnabled)
protected final void setLoggerFactory(java.lang.String loggerImpl)
public boolean isIncludeMyRetweetEnabled()
isIncludeMyRetweetEnabled
in interface Configuration
public void setIncludeMyRetweetEnabled(boolean enabled)
public boolean isTrimUserEnabled()
isTrimUserEnabled
in interface Configuration
public boolean isIncludeExtAltTextEnabled()
isIncludeExtAltTextEnabled
in interface Configuration
public boolean isTweetModeExtended()
isTweetModeExtended
in interface Configuration
public boolean isDaemonEnabled()
isDaemonEnabled
in interface Configuration
protected void setDaemonEnabled(boolean daemonEnabled)
public boolean isIncludeEmailEnabled()
isIncludeEmailEnabled
in interface Configuration
protected void setIncludeEmailEnabled(boolean includeEmailEnabled)
public void setTrimUserEnabled(boolean enabled)
public void setIncludeExtAltTextEnabled(boolean enabled)
public void setTweetModeExtended(boolean enabled)
public boolean isJSONStoreEnabled()
isJSONStoreEnabled
in interface Configuration
protected final void setJSONStoreEnabled(boolean enabled)
public boolean isMBeanEnabled()
isMBeanEnabled
in interface Configuration
protected final void setMBeanEnabled(boolean enabled)
public boolean isUserStreamRepliesAllEnabled()
isUserStreamRepliesAllEnabled
in interface Configuration
public boolean isUserStreamWithFollowingsEnabled()
isUserStreamWithFollowingsEnabled
in interface Configuration
protected final void setUserStreamRepliesAllEnabled(boolean enabled)
protected final void setUserStreamWithFollowingsEnabled(boolean enabled)
public boolean isStallWarningsEnabled()
isStallWarningsEnabled
in interface Configuration
protected final void setStallWarningsEnabled(boolean stallWarningsEnabled)
public boolean isApplicationOnlyAuthEnabled()
isApplicationOnlyAuthEnabled
in interface Configuration
protected final void setApplicationOnlyAuthEnabled(boolean applicationOnlyAuthEnabled)
public java.lang.String getMediaProvider()
getMediaProvider
in interface Configuration
protected final void setMediaProvider(java.lang.String mediaProvider)
public java.lang.String getMediaProviderAPIKey()
getMediaProviderAPIKey
in interface Configuration
protected final void setMediaProviderAPIKey(java.lang.String mediaProviderAPIKey)
public java.util.Properties getMediaProviderParameters()
getMediaProviderParameters
in interface Configuration
protected final void setMediaProviderParameters(java.util.Properties props)
public java.lang.String getStreamThreadName()
getStreamThreadName
in interface Configuration
protected final void setStreamThreadName(java.lang.String streamThreadName)
static java.lang.String fixURL(boolean useSSL, java.lang.String url)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
private static void cacheInstance(ConfigurationBase conf)
protected void cacheInstance()
private static ConfigurationBase getInstance(ConfigurationBase configurationBase)
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException