Interface ServiceBuilderCommon
-
- All Known Subinterfaces:
ServiceBuilderOAuth10a,ServiceBuilderOAuth20
- All Known Implementing Classes:
ServiceBuilder
public interface ServiceBuilderCommonImplementation of the Builder pattern, with a fluent interface that creates aOAuthService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServiceBuilderCommonapiKey(String apiKey)Configures the api keyServiceBuilderCommonapiSecret(String apiSecret)Configures the api secretServiceBuilderCommoncallback(String callback)Adds an OAuth callback urlServiceBuilderCommonhttpClient(HttpClient httpClient)takes precedence over httpClientConfigServiceBuilderCommonhttpClientConfig(HttpClientConfig httpClientConfig)ServiceBuilderCommonuserAgent(String userAgent)
-
-
-
Method Detail
-
callback
ServiceBuilderCommon callback(String callback)
Adds an OAuth callback url- Parameters:
callback- callback url. Must be a valid url or 'oob' (OAuthConstants.OOBfor out of band OAuth- Returns:
- the
ServiceBuilderinstance for method chaining
-
apiKey
ServiceBuilderCommon apiKey(String apiKey)
Configures the api key- Parameters:
apiKey- The api key for your application- Returns:
- the
ServiceBuilderinstance for method chaining
-
apiSecret
ServiceBuilderCommon apiSecret(String apiSecret)
Configures the api secret- Parameters:
apiSecret- The api secret for your application- Returns:
- the
ServiceBuilderinstance for method chaining
-
httpClientConfig
ServiceBuilderCommon httpClientConfig(HttpClientConfig httpClientConfig)
-
httpClient
ServiceBuilderCommon httpClient(HttpClient httpClient)
takes precedence over httpClientConfig- Parameters:
httpClient- externally created HTTP client- Returns:
- the
ServiceBuilderinstance for method chaining
-
userAgent
ServiceBuilderCommon userAgent(String userAgent)
-
-