Interface ServiceBuilderCommon
- All Known Subinterfaces:
ServiceBuilderOAuth10a
,ServiceBuilderOAuth20
- All Known Implementing Classes:
ServiceBuilder
public interface ServiceBuilderCommon
Implementation of the Builder pattern, with a fluent interface that creates a
OAuthService
-
Method Summary
Modifier and Type Method Description ServiceBuilderCommon
apiKey(java.lang.String apiKey)
Configures the api keyServiceBuilderCommon
apiSecret(java.lang.String apiSecret)
Configures the api secretServiceBuilderCommon
callback(java.lang.String callback)
Adds an OAuth callback urlServiceBuilderCommon
debug()
ServiceBuilderCommon
debugStream(java.io.OutputStream debugStream)
ServiceBuilderCommon
httpClient(HttpClient httpClient)
takes precedence over httpClientConfigServiceBuilderCommon
httpClientConfig(HttpClientConfig httpClientConfig)
ServiceBuilderCommon
userAgent(java.lang.String userAgent)
-
Method Details
-
callback
Adds an OAuth callback url- Parameters:
callback
- callback url. Must be a valid url or 'oob' (OAuthConstants.OOB
for out of band OAuth- Returns:
- the
ServiceBuilder
instance for method chaining
-
apiKey
Configures the api key- Parameters:
apiKey
- The api key for your application- Returns:
- the
ServiceBuilder
instance for method chaining
-
apiSecret
Configures the api secret- Parameters:
apiSecret
- The api secret for your application- Returns:
- the
ServiceBuilder
instance for method chaining
-
httpClientConfig
-
httpClient
takes precedence over httpClientConfig- Parameters:
httpClient
- externally created HTTP client- Returns:
- the
ServiceBuilder
instance for method chaining
-
userAgent
-
debugStream
-
debug
ServiceBuilderCommon debug()
-