Class FacebookConfiguration
- java.lang.Object
-
- org.apache.camel.component.facebook.config.FacebookConfiguration
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
FacebookEndpointConfiguration
@UriParams public class FacebookConfiguration extends Object implements Cloneable
Facebook component configuration.
-
-
Constructor Summary
Constructors Constructor Description FacebookConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacebookConfiguration
copy()
String
getClientURL()
String
getClientVersion()
facebook4j.conf.Configuration
getConfiguration()
Boolean
getDebugEnabled()
facebook4j.Facebook
getFacebook()
ReturnsFacebook
instance.Boolean
getGzipEnabled()
Integer
getHttpConnectionTimeout()
Integer
getHttpDefaultMaxPerRoute()
Integer
getHttpMaxTotalConnections()
String
getHttpProxyHost()
String
getHttpProxyPassword()
Integer
getHttpProxyPort()
String
getHttpProxyUser()
Integer
getHttpReadTimeout()
Integer
getHttpRetryCount()
Integer
getHttpRetryIntervalSeconds()
Integer
getHttpStreamingReadTimeout()
Boolean
getJsonStoreEnabled()
Boolean
getMbeanEnabled()
String
getOAuthAccessToken()
String
getOAuthAccessTokenURL()
String
getOAuthAppId()
String
getOAuthAppSecret()
String
getOAuthAuthorizationURL()
String
getOAuthPermissions()
Boolean
getPrettyDebugEnabled()
String
getRestBaseURL()
Boolean
getUseSSL()
String
getVideoBaseURL()
void
setClientURL(String clientURL)
Facebook4J API client URLvoid
setClientVersion(String clientVersion)
Facebook4J client API versionvoid
setDebugEnabled(Boolean debugEnabled)
Enables deubg output.void
setGzipEnabled(Boolean gzipEnabled)
Use Facebook GZIP encodingvoid
setHttpConnectionTimeout(Integer httpConnectionTimeout)
Http connection timeout in millisecondsvoid
setHttpDefaultMaxPerRoute(Integer httpDefaultMaxPerRoute)
HTTP maximum connections per routevoid
setHttpMaxTotalConnections(Integer httpMaxTotalConnections)
HTTP maximum total connectionsvoid
setHttpProxyHost(String httpProxyHost)
HTTP proxy server host namevoid
setHttpProxyPassword(String httpProxyPassword)
HTTP proxy server passwordvoid
setHttpProxyPort(Integer httpProxyPort)
HTTP proxy server portvoid
setHttpProxyUser(String httpProxyUser)
HTTP proxy server user namevoid
setHttpReadTimeout(Integer httpReadTimeout)
Http read timeout in millisecondsvoid
setHttpRetryCount(Integer httpRetryCount)
Number of HTTP retriesvoid
setHttpRetryIntervalSeconds(Integer httpRetryIntervalSeconds)
HTTP retry interval in secondsvoid
setHttpStreamingReadTimeout(Integer httpStreamingReadTimeout)
HTTP streaming read timeout in millisecondsvoid
setJsonStoreEnabled(Boolean jsonStoreEnabled)
If set to true, raw JSON forms will be stored in DataObjectFactoryvoid
setMbeanEnabled(Boolean mbeanEnabled)
If set to true, Facebook4J mbean will be registerdvoid
setOAuthAccessToken(String oAuthAccessToken)
The user access tokenvoid
setOAuthAccessTokenURL(String oAuthAccessTokenURL)
OAuth access token URLvoid
setOAuthAppId(String oAuthAppId)
The application Idvoid
setOAuthAppSecret(String oAuthAppSecret)
The application Secretvoid
setOAuthAuthorizationURL(String oAuthAuthorizationURL)
OAuth authorization URLvoid
setOAuthPermissions(String oAuthPermissions)
Default OAuth permissions.void
setPrettyDebugEnabled(Boolean prettyDebugEnabled)
Prettify JSON debug output if set to truevoid
setRestBaseURL(String restBaseURL)
API base URLvoid
setUseSSL(Boolean useSSL)
Use SSLvoid
setVideoBaseURL(String videoBaseURL)
Video API base URLvoid
validate()
-
-
-
Method Detail
-
getConfiguration
public facebook4j.conf.Configuration getConfiguration()
-
getFacebook
public facebook4j.Facebook getFacebook() throws facebook4j.FacebookException
ReturnsFacebook
instance. If needed, creates one from configuration.- Returns:
Facebook
instance- Throws:
facebook4j.FacebookException
-
copy
public FacebookConfiguration copy() throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
-
getOAuthAccessToken
public String getOAuthAccessToken()
-
setOAuthAccessToken
public void setOAuthAccessToken(String oAuthAccessToken)
The user access token
-
getOAuthAccessTokenURL
public String getOAuthAccessTokenURL()
-
setOAuthAccessTokenURL
public void setOAuthAccessTokenURL(String oAuthAccessTokenURL)
OAuth access token URL
-
getOAuthAppId
public String getOAuthAppId()
-
setOAuthAppId
public void setOAuthAppId(String oAuthAppId)
The application Id
-
getOAuthAppSecret
public String getOAuthAppSecret()
-
setOAuthAppSecret
public void setOAuthAppSecret(String oAuthAppSecret)
The application Secret
-
getOAuthAuthorizationURL
public String getOAuthAuthorizationURL()
-
setOAuthAuthorizationURL
public void setOAuthAuthorizationURL(String oAuthAuthorizationURL)
OAuth authorization URL
-
getClientURL
public String getClientURL()
-
setClientURL
public void setClientURL(String clientURL)
Facebook4J API client URL
-
getClientVersion
public String getClientVersion()
-
setClientVersion
public void setClientVersion(String clientVersion)
Facebook4J client API version
-
getDebugEnabled
public Boolean getDebugEnabled()
-
setDebugEnabled
public void setDebugEnabled(Boolean debugEnabled)
Enables deubg output. Effective only with the embedded logger
-
getGzipEnabled
public Boolean getGzipEnabled()
-
setGzipEnabled
public void setGzipEnabled(Boolean gzipEnabled)
Use Facebook GZIP encoding
-
getHttpConnectionTimeout
public Integer getHttpConnectionTimeout()
-
setHttpConnectionTimeout
public void setHttpConnectionTimeout(Integer httpConnectionTimeout)
Http connection timeout in milliseconds
-
getHttpDefaultMaxPerRoute
public Integer getHttpDefaultMaxPerRoute()
-
setHttpDefaultMaxPerRoute
public void setHttpDefaultMaxPerRoute(Integer httpDefaultMaxPerRoute)
HTTP maximum connections per route
-
getHttpMaxTotalConnections
public Integer getHttpMaxTotalConnections()
-
setHttpMaxTotalConnections
public void setHttpMaxTotalConnections(Integer httpMaxTotalConnections)
HTTP maximum total connections
-
getHttpProxyHost
public String getHttpProxyHost()
-
setHttpProxyHost
public void setHttpProxyHost(String httpProxyHost)
HTTP proxy server host name
-
getHttpProxyPassword
public String getHttpProxyPassword()
-
setHttpProxyPassword
public void setHttpProxyPassword(String httpProxyPassword)
HTTP proxy server password
-
getHttpProxyPort
public Integer getHttpProxyPort()
-
setHttpProxyPort
public void setHttpProxyPort(Integer httpProxyPort)
HTTP proxy server port
-
getHttpProxyUser
public String getHttpProxyUser()
-
setHttpProxyUser
public void setHttpProxyUser(String httpProxyUser)
HTTP proxy server user name
-
getHttpReadTimeout
public Integer getHttpReadTimeout()
-
setHttpReadTimeout
public void setHttpReadTimeout(Integer httpReadTimeout)
Http read timeout in milliseconds
-
getHttpRetryCount
public Integer getHttpRetryCount()
-
setHttpRetryCount
public void setHttpRetryCount(Integer httpRetryCount)
Number of HTTP retries
-
getHttpRetryIntervalSeconds
public Integer getHttpRetryIntervalSeconds()
-
setHttpRetryIntervalSeconds
public void setHttpRetryIntervalSeconds(Integer httpRetryIntervalSeconds)
HTTP retry interval in seconds
-
getHttpStreamingReadTimeout
public Integer getHttpStreamingReadTimeout()
-
setHttpStreamingReadTimeout
public void setHttpStreamingReadTimeout(Integer httpStreamingReadTimeout)
HTTP streaming read timeout in milliseconds
-
getJsonStoreEnabled
public Boolean getJsonStoreEnabled()
-
setJsonStoreEnabled
public void setJsonStoreEnabled(Boolean jsonStoreEnabled)
If set to true, raw JSON forms will be stored in DataObjectFactory
-
getMbeanEnabled
public Boolean getMbeanEnabled()
-
setMbeanEnabled
public void setMbeanEnabled(Boolean mbeanEnabled)
If set to true, Facebook4J mbean will be registerd
-
getOAuthPermissions
public String getOAuthPermissions()
-
setOAuthPermissions
public void setOAuthPermissions(String oAuthPermissions)
Default OAuth permissions. Comma separated permission names. See https://developers.facebook.com/docs/reference/login/#permissions for the detail
-
getPrettyDebugEnabled
public Boolean getPrettyDebugEnabled()
-
setPrettyDebugEnabled
public void setPrettyDebugEnabled(Boolean prettyDebugEnabled)
Prettify JSON debug output if set to true
-
getRestBaseURL
public String getRestBaseURL()
-
setRestBaseURL
public void setRestBaseURL(String restBaseURL)
API base URL
-
getUseSSL
public Boolean getUseSSL()
-
setUseSSL
public void setUseSSL(Boolean useSSL)
Use SSL
-
getVideoBaseURL
public String getVideoBaseURL()
-
setVideoBaseURL
public void setVideoBaseURL(String videoBaseURL)
Video API base URL
-
validate
public void validate()
-
-