class ConfigurationBase extends java.lang.Object implements Configuration, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private int |
asyncNumThreads |
private java.lang.String |
clientURL |
private java.lang.String |
clientVersion |
static java.lang.String |
DALVIK |
(package private) static java.lang.String |
dalvikDetected |
private boolean |
debug |
private static java.lang.String |
DEFAULT_OAUTH_ACCESS_TOKEN_URL |
private static java.lang.String |
DEFAULT_OAUTH_AUTHENTICATION_URL |
private static java.lang.String |
DEFAULT_OAUTH_AUTHORIZATION_URL |
private static java.lang.String |
DEFAULT_OAUTH_REQUEST_TOKEN_URL |
private static java.lang.String |
DEFAULT_REST_BASE_URL |
private static java.lang.String |
DEFAULT_SEARCH_BASE_URL |
private static java.lang.String |
DEFAULT_STREAM_BASE_URL |
private static java.lang.String |
DEFAULT_USER_STREAM_BASE_URL |
private int |
defaultMaxPerRoute |
private java.lang.String |
dispatcherImpl |
private int |
httpConnectionTimeout |
private java.lang.String |
httpProxyHost |
private java.lang.String |
httpProxyPassword |
private int |
httpProxyPort |
private java.lang.String |
httpProxyUser |
private int |
httpReadTimeout |
private int |
httpRetryCount |
private int |
httpRetryIntervalSeconds |
private int |
httpStreamingReadTimeout |
private boolean |
includeRTsEnabled |
private boolean |
IS_DALVIK |
private int |
maxTotalConnections |
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 |
(package private) java.util.Map<java.lang.String,java.lang.String> |
requestHeaders |
private java.lang.String |
restBaseURL |
private java.lang.String |
searchBaseURL |
private static long |
serialVersionUID |
private java.lang.String |
source |
private java.lang.String |
streamBaseURL |
private java.lang.String |
user |
private java.lang.String |
userAgent |
private java.lang.String |
userStreamBaseURL |
private boolean |
userStreamRepliesAllEnabled |
private boolean |
useSSL |
| Modifier | Constructor and Description |
|---|---|
protected |
ConfigurationBase() |
| Modifier and Type | Method and Description |
|---|---|
private void |
fixRestBaseURL() |
(package private) static java.lang.String |
fixURL(boolean useSSL,
java.lang.String url) |
int |
getAsyncNumThreads() |
java.lang.String |
getClientURL() |
java.lang.String |
getClientVersion() |
java.lang.String |
getDispatcherImpl() |
int |
getHttpConnectionTimeout() |
int |
getHttpDefaultMaxPerRoute() |
int |
getHttpMaxTotalConnections() |
java.lang.String |
getHttpProxyHost() |
java.lang.String |
getHttpProxyPassword() |
int |
getHttpProxyPort() |
java.lang.String |
getHttpProxyUser() |
int |
getHttpReadTimeout() |
int |
getHttpRetryCount() |
int |
getHttpRetryIntervalSeconds() |
int |
getHttpStreamingReadTimeout() |
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.util.Map<java.lang.String,java.lang.String> |
getRequestHeaders() |
java.lang.String |
getRestBaseURL() |
java.lang.String |
getSearchBaseURL() |
java.lang.String |
getSource() |
java.lang.String |
getStreamBaseURL() |
java.lang.String |
getUser() |
java.lang.String |
getUserAgent() |
java.lang.String |
getUserStreamBaseURL() |
int |
hashCode() |
private void |
initRequestHeaders() |
boolean |
isDalvik() |
boolean |
isDebugEnabled() |
boolean |
isIncludeRTsEnabled() |
boolean |
isUserStreamRepliesAllEnabled() |
protected void |
setAsyncNumThreads(int asyncNumThreads) |
protected void |
setClientURL(java.lang.String clientURL) |
protected void |
setClientVersion(java.lang.String clientVersion) |
protected void |
setDebug(boolean debug) |
protected void |
setDispatcherImpl(java.lang.String dispatcherImpl) |
protected void |
setHttpConnectionTimeout(int connectionTimeout) |
protected void |
setHttpDefaultMaxPerRoute(int defaultMaxPerRoute) |
protected void |
setHttpMaxTotalConnections(int maxTotalConnections) |
protected void |
setHttpProxyHost(java.lang.String proxyHost) |
protected void |
setHttpProxyPassword(java.lang.String proxyPassword) |
protected void |
setHttpProxyPort(int proxyPort) |
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 |
setIncludeRTsEnbled(boolean enabled) |
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 |
setRestBaseURL(java.lang.String restBaseURL) |
protected void |
setSearchBaseURL(java.lang.String searchBaseURL) |
protected void |
setSource(java.lang.String source) |
protected void |
setStreamBaseURL(java.lang.String streamBaseURL) |
protected void |
setUser(java.lang.String user) |
protected void |
setUserAgent(java.lang.String userAgent) |
protected void |
setUserStreamBaseURL(java.lang.String userStreamBaseURL) |
protected void |
setUserStreamRepliesAllEnabled(boolean enabled) |
protected void |
setUseSSL(boolean useSSL) |
java.lang.String |
toString() |
private boolean debug
private java.lang.String source
private java.lang.String userAgent
private java.lang.String user
private java.lang.String password
private boolean useSSL
private java.lang.String httpProxyHost
private java.lang.String httpProxyUser
private java.lang.String httpProxyPassword
private int httpProxyPort
private int httpConnectionTimeout
private int httpReadTimeout
private int httpStreamingReadTimeout
private int httpRetryCount
private int httpRetryIntervalSeconds
private int maxTotalConnections
private int defaultMaxPerRoute
private java.lang.String oAuthConsumerKey
private java.lang.String oAuthConsumerSecret
private java.lang.String oAuthAccessToken
private java.lang.String oAuthAccessTokenSecret
private java.lang.String oAuthRequestTokenURL
private java.lang.String oAuthAuthorizationURL
private java.lang.String oAuthAccessTokenURL
private java.lang.String oAuthAuthenticationURL
private java.lang.String restBaseURL
private java.lang.String searchBaseURL
private java.lang.String streamBaseURL
private java.lang.String userStreamBaseURL
private java.lang.String dispatcherImpl
private int asyncNumThreads
private boolean includeRTsEnabled
private boolean userStreamRepliesAllEnabled
private java.lang.String clientVersion
private java.lang.String clientURL
public static final java.lang.String DALVIK
private static final java.lang.String DEFAULT_OAUTH_REQUEST_TOKEN_URL
private static final java.lang.String DEFAULT_OAUTH_AUTHORIZATION_URL
private static final java.lang.String DEFAULT_OAUTH_ACCESS_TOKEN_URL
private static final java.lang.String DEFAULT_OAUTH_AUTHENTICATION_URL
private static final java.lang.String DEFAULT_REST_BASE_URL
private static final java.lang.String DEFAULT_SEARCH_BASE_URL
private static final java.lang.String DEFAULT_STREAM_BASE_URL
private static final java.lang.String DEFAULT_USER_STREAM_BASE_URL
private boolean IS_DALVIK
private static final long serialVersionUID
static java.lang.String dalvikDetected
java.util.Map<java.lang.String,java.lang.String> requestHeaders
public final boolean isDalvik()
isDalvik in interface Configurationpublic final boolean isDebugEnabled()
isDebugEnabled in interface Configurationprotected final void setDebug(boolean debug)
public final java.lang.String getUserAgent()
getUserAgent in interface Configurationprotected final void setUserAgent(java.lang.String userAgent)
public final java.lang.String getSource()
getSource in interface Configurationprotected final void setSource(java.lang.String source)
public final java.lang.String getUser()
getUser in interface ConfigurationgetUser in interface AuthorizationConfigurationprotected final void setUser(java.lang.String user)
public final java.lang.String getPassword()
getPassword in interface ConfigurationgetPassword in interface AuthorizationConfigurationprotected final void setPassword(java.lang.String password)
protected final void setUseSSL(boolean useSSL)
private void initRequestHeaders()
public java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
getRequestHeaders in interface ConfigurationgetRequestHeaders in interface twitter4j.internal.http.HttpClientWrapperConfigurationpublic final java.lang.String getHttpProxyHost()
getHttpProxyHost in interface ConfigurationgetHttpProxyHost in interface twitter4j.internal.http.HttpClientConfigurationprotected final void setHttpProxyHost(java.lang.String proxyHost)
public final java.lang.String getHttpProxyUser()
getHttpProxyUser in interface ConfigurationgetHttpProxyUser in interface twitter4j.internal.http.HttpClientConfigurationprotected final void setHttpProxyUser(java.lang.String proxyUser)
public final java.lang.String getHttpProxyPassword()
getHttpProxyPassword in interface ConfigurationgetHttpProxyPassword in interface twitter4j.internal.http.HttpClientConfigurationprotected final void setHttpProxyPassword(java.lang.String proxyPassword)
public final int getHttpProxyPort()
getHttpProxyPort in interface ConfigurationgetHttpProxyPort in interface twitter4j.internal.http.HttpClientConfigurationprotected final void setHttpProxyPort(int proxyPort)
public final int getHttpConnectionTimeout()
getHttpConnectionTimeout in interface ConfigurationgetHttpConnectionTimeout in interface twitter4j.internal.http.HttpClientConfigurationprotected final void setHttpConnectionTimeout(int connectionTimeout)
public final int getHttpReadTimeout()
getHttpReadTimeout in interface ConfigurationgetHttpReadTimeout in interface twitter4j.internal.http.HttpClientConfigurationprotected final void setHttpReadTimeout(int readTimeout)
public int getHttpStreamingReadTimeout()
getHttpStreamingReadTimeout in interface Configurationprotected final void setHttpStreamingReadTimeout(int httpStreamingReadTimeout)
public final int getHttpRetryCount()
getHttpRetryCount in interface ConfigurationgetHttpRetryCount in interface twitter4j.internal.http.HttpClientConfigurationprotected final void setHttpRetryCount(int retryCount)
public final int getHttpRetryIntervalSeconds()
getHttpRetryIntervalSeconds in interface ConfigurationgetHttpRetryIntervalSeconds in interface twitter4j.internal.http.HttpClientConfigurationprotected final void setHttpRetryIntervalSeconds(int retryIntervalSeconds)
public final int getHttpMaxTotalConnections()
getHttpMaxTotalConnections in interface ConfigurationgetHttpMaxTotalConnections in interface twitter4j.internal.http.HttpClientConfigurationprotected final void setHttpMaxTotalConnections(int maxTotalConnections)
public final int getHttpDefaultMaxPerRoute()
getHttpDefaultMaxPerRoute in interface ConfigurationgetHttpDefaultMaxPerRoute in interface twitter4j.internal.http.HttpClientConfigurationprotected final void setHttpDefaultMaxPerRoute(int defaultMaxPerRoute)
public final java.lang.String getOAuthConsumerKey()
getOAuthConsumerKey in interface ConfigurationgetOAuthConsumerKey in interface AuthorizationConfigurationprotected final void setOAuthConsumerKey(java.lang.String oAuthConsumerKey)
public final java.lang.String getOAuthConsumerSecret()
getOAuthConsumerSecret in interface ConfigurationgetOAuthConsumerSecret in interface AuthorizationConfigurationprotected final void setOAuthConsumerSecret(java.lang.String oAuthConsumerSecret)
public java.lang.String getOAuthAccessToken()
getOAuthAccessToken in interface ConfigurationgetOAuthAccessToken in interface AuthorizationConfigurationprotected final void setOAuthAccessToken(java.lang.String oAuthAccessToken)
public java.lang.String getOAuthAccessTokenSecret()
getOAuthAccessTokenSecret in interface ConfigurationgetOAuthAccessTokenSecret in interface AuthorizationConfigurationprotected final void setOAuthAccessTokenSecret(java.lang.String oAuthAccessTokenSecret)
public final int getAsyncNumThreads()
getAsyncNumThreads in interface twitter4j.internal.async.DispatcherConfigurationprotected final void setAsyncNumThreads(int asyncNumThreads)
public final java.lang.String getClientVersion()
getClientVersion in interface Configurationprotected final void setClientVersion(java.lang.String clientVersion)
public final java.lang.String getClientURL()
getClientURL in interface Configurationprotected final void setClientURL(java.lang.String clientURL)
public java.lang.String getRestBaseURL()
getRestBaseURL in interface Configurationprotected final void setRestBaseURL(java.lang.String restBaseURL)
private void fixRestBaseURL()
public java.lang.String getSearchBaseURL()
getSearchBaseURL in interface Configurationprotected final void setSearchBaseURL(java.lang.String searchBaseURL)
public java.lang.String getStreamBaseURL()
getStreamBaseURL in interface Configurationprotected final void setStreamBaseURL(java.lang.String streamBaseURL)
public java.lang.String getUserStreamBaseURL()
getUserStreamBaseURL in interface Configurationprotected final void setUserStreamBaseURL(java.lang.String userStreamBaseURL)
public java.lang.String getOAuthRequestTokenURL()
getOAuthRequestTokenURL in interface Configurationprotected final void setOAuthRequestTokenURL(java.lang.String oAuthRequestTokenURL)
public java.lang.String getOAuthAuthorizationURL()
getOAuthAuthorizationURL in interface Configurationprotected final void setOAuthAuthorizationURL(java.lang.String oAuthAuthorizationURL)
public java.lang.String getOAuthAccessTokenURL()
getOAuthAccessTokenURL in interface Configurationprotected final void setOAuthAccessTokenURL(java.lang.String oAuthAccessTokenURL)
public java.lang.String getOAuthAuthenticationURL()
getOAuthAuthenticationURL in interface Configurationprotected final void setOAuthAuthenticationURL(java.lang.String oAuthAuthenticationURL)
public java.lang.String getDispatcherImpl()
getDispatcherImpl in interface twitter4j.internal.async.DispatcherConfigurationprotected final void setDispatcherImpl(java.lang.String dispatcherImpl)
public boolean isIncludeRTsEnabled()
isIncludeRTsEnabled in interface Configurationprotected final void setIncludeRTsEnbled(boolean enabled)
public boolean isUserStreamRepliesAllEnabled()
isUserStreamRepliesAllEnabled in interface Configurationprotected final void setUserStreamRepliesAllEnabled(boolean enabled)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectstatic java.lang.String fixURL(boolean useSSL,
java.lang.String url)