facebook4j.conf
Class ConfigurationBase

java.lang.Object
  extended by facebook4j.conf.ConfigurationBase
All Implemented Interfaces:
AuthorizationConfiguration, Configuration, facebook4j.internal.http.HttpClientConfiguration, facebook4j.internal.http.HttpClientWrapperConfiguration, Serializable
Direct Known Subclasses:
PropertyConfiguration

public class ConfigurationBase
extends Object
implements Configuration, Serializable

Configuration base class with default settings.

Author:
Yusuke Yamamoto - yusuke at mac.com, Ryuji Yamashita - roundrop at gmail.com
See Also:
Serialized Form

Field Summary
static String DALVIK
           
static String GAE
           
 
Method Summary
 boolean equals(Object o)
           
 int getAppSecretProofCacheSize()
           
 String getClientURL()
           
 String getClientVersion()
           
 int getHttpConnectionTimeout()
           
 int getHttpDefaultMaxPerRoute()
           
 int getHttpMaxTotalConnections()
           
 String getHttpProxyHost()
           
 String getHttpProxyPassword()
           
 int getHttpProxyPort()
           
 String getHttpProxyUser()
           
 int getHttpReadTimeout()
           
 int getHttpRetryCount()
           
 int getHttpRetryIntervalSeconds()
           
 int getHttpStreamingReadTimeout()
           
 String getOAuthAccessToken()
           
 String getOAuthAccessTokenInfoURL()
           
 String getOAuthAccessTokenURL()
           
 String getOAuthAppId()
           
 String getOAuthAppSecret()
           
 String getOAuthAuthorizationURL()
           
 String getOAuthCallbackURL()
           
 String getOAuthDeviceTokenURL()
           
 String getOAuthPermissions()
           
 Map<String,String> getRequestHeaders()
           
 String getRestBaseURL()
           
 String getUserAgent()
           
 String getVideoBaseURL()
           
 int hashCode()
           
 boolean isAppSecretProofEnabled()
           
 boolean isDalvik()
           
 boolean isDebugEnabled()
           
 boolean isGAE()
           
 boolean isGZIPEnabled()
           
 boolean isJSONStoreEnabled()
           
 boolean isMBeanEnabled()
           
 boolean isPrettyDebugEnabled()
           
 void setAppSecretProofCacheSize(int appSecretProofCacheSize)
           
 void setAppSecretProofEnabled(boolean enabled)
           
 void setOAuthCallbackURL(String oAuthCallbackURL)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DALVIK

public static final String DALVIK
See Also:
Constant Field Values

GAE

public static final String GAE
See Also:
Constant Field Values
Method Detail

isDalvik

public final boolean isDalvik()
Specified by:
isDalvik in interface Configuration

isGAE

public boolean isGAE()
Specified by:
isGAE in interface Configuration

isDebugEnabled

public final boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Configuration

getUserAgent

public final String getUserAgent()
Specified by:
getUserAgent in interface Configuration

isPrettyDebugEnabled

public boolean isPrettyDebugEnabled()
Specified by:
isPrettyDebugEnabled in interface facebook4j.internal.http.HttpClientConfiguration

isGZIPEnabled

public boolean isGZIPEnabled()
Specified by:
isGZIPEnabled in interface facebook4j.internal.http.HttpClientConfiguration

getRequestHeaders

public Map<String,String> getRequestHeaders()
Specified by:
getRequestHeaders in interface facebook4j.internal.http.HttpClientWrapperConfiguration
Returns:
request headers

getHttpProxyHost

public final String getHttpProxyHost()
Specified by:
getHttpProxyHost in interface facebook4j.internal.http.HttpClientConfiguration

getHttpProxyUser

public final String getHttpProxyUser()
Specified by:
getHttpProxyUser in interface facebook4j.internal.http.HttpClientConfiguration

getHttpProxyPassword

public final String getHttpProxyPassword()
Specified by:
getHttpProxyPassword in interface facebook4j.internal.http.HttpClientConfiguration

getHttpProxyPort

public final int getHttpProxyPort()
Specified by:
getHttpProxyPort in interface facebook4j.internal.http.HttpClientConfiguration

getHttpConnectionTimeout

public final int getHttpConnectionTimeout()
Specified by:
getHttpConnectionTimeout in interface facebook4j.internal.http.HttpClientConfiguration

getHttpReadTimeout

public final int getHttpReadTimeout()
Specified by:
getHttpReadTimeout in interface facebook4j.internal.http.HttpClientConfiguration

getHttpStreamingReadTimeout

public int getHttpStreamingReadTimeout()

getHttpRetryCount

public final int getHttpRetryCount()
Specified by:
getHttpRetryCount in interface facebook4j.internal.http.HttpClientConfiguration

getHttpRetryIntervalSeconds

public final int getHttpRetryIntervalSeconds()
Specified by:
getHttpRetryIntervalSeconds in interface facebook4j.internal.http.HttpClientConfiguration

getHttpMaxTotalConnections

public final int getHttpMaxTotalConnections()
Specified by:
getHttpMaxTotalConnections in interface facebook4j.internal.http.HttpClientConfiguration

getHttpDefaultMaxPerRoute

public final int getHttpDefaultMaxPerRoute()
Specified by:
getHttpDefaultMaxPerRoute in interface facebook4j.internal.http.HttpClientConfiguration

getOAuthAppId

public final String getOAuthAppId()
Specified by:
getOAuthAppId in interface AuthorizationConfiguration

getOAuthAppSecret

public final String getOAuthAppSecret()
Specified by:
getOAuthAppSecret in interface AuthorizationConfiguration

getOAuthAccessToken

public String getOAuthAccessToken()
Specified by:
getOAuthAccessToken in interface AuthorizationConfiguration

getClientVersion

public final String getClientVersion()
Specified by:
getClientVersion in interface Configuration

getClientURL

public final String getClientURL()
Specified by:
getClientURL in interface Configuration

getRestBaseURL

public String getRestBaseURL()
Specified by:
getRestBaseURL in interface Configuration

getVideoBaseURL

public String getVideoBaseURL()
Specified by:
getVideoBaseURL in interface Configuration

getOAuthAuthorizationURL

public String getOAuthAuthorizationURL()
Specified by:
getOAuthAuthorizationURL in interface Configuration

getOAuthAccessTokenURL

public String getOAuthAccessTokenURL()
Specified by:
getOAuthAccessTokenURL in interface Configuration

getOAuthAccessTokenInfoURL

public String getOAuthAccessTokenInfoURL()
Specified by:
getOAuthAccessTokenInfoURL in interface Configuration

getOAuthDeviceTokenURL

public String getOAuthDeviceTokenURL()
Specified by:
getOAuthDeviceTokenURL in interface Configuration

isJSONStoreEnabled

public boolean isJSONStoreEnabled()
Specified by:
isJSONStoreEnabled in interface Configuration

isMBeanEnabled

public boolean isMBeanEnabled()
Specified by:
isMBeanEnabled in interface Configuration

getOAuthPermissions

public String getOAuthPermissions()
Specified by:
getOAuthPermissions in interface AuthorizationConfiguration

getOAuthCallbackURL

public String getOAuthCallbackURL()
Specified by:
getOAuthCallbackURL in interface AuthorizationConfiguration

setOAuthCallbackURL

public void setOAuthCallbackURL(String oAuthCallbackURL)

isAppSecretProofEnabled

public boolean isAppSecretProofEnabled()
Specified by:
isAppSecretProofEnabled in interface AuthorizationConfiguration

setAppSecretProofEnabled

public void setAppSecretProofEnabled(boolean enabled)

getAppSecretProofCacheSize

public int getAppSecretProofCacheSize()
Specified by:
getAppSecretProofCacheSize in interface AuthorizationConfiguration

setAppSecretProofCacheSize

public void setAppSecretProofCacheSize(int appSecretProofCacheSize)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2019. All rights reserved.