public static class HttpRequestConfig.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new HttpRequestConfig.Builder.
|
Builder(HttpRequestConfig httpRequestConfig)
Initializes the instance with the values from an
#HttpRequestConfig |
Modifier and Type | Method and Description |
---|---|
HttpRequestConfig.Builder |
addQueryParameter(java.lang.String queryParameterKey,
java.lang.String queryParameterValue)
Adds an HTTP query parameter
|
HttpRequestConfig.Builder |
addQueryParameters(java.util.Map<java.lang.String,java.lang.String> queryParameters)
Adds the HTTP request query parameters as a map of key-value pairs.
|
HttpRequestConfig.Builder |
addRequestHeader(java.lang.String headerKey,
java.lang.String headerValue)
Adds an HTTP request header
|
HttpRequestConfig.Builder |
addRequestHeaders(java.util.Map<java.lang.String,java.lang.String> requestHeaders)
Adds the HTTP request headers as a map of key-value pairs.
|
HttpRequestConfig |
build()
Builds the HttpRequestConfig object.
|
HttpRequestConfig.Builder |
setBrightcoveAuthorizationToken(java.lang.String brightcoveAuthorizationToken)
Sets the Brightcove authorization token.
|
HttpRequestConfig.Builder |
setCustomerRightsTokenConfig(CustomerRightsTokenConfig customerRightsTokenConfig) |
public Builder()
public Builder(HttpRequestConfig httpRequestConfig)
#HttpRequestConfig
httpRequestConfig
- the HttpRequestConfig to initialize the builder.public HttpRequestConfig.Builder setBrightcoveAuthorizationToken(@NonNull java.lang.String brightcoveAuthorizationToken)
brightcoveAuthorizationToken
- the Brightcove authorization tokenpublic HttpRequestConfig.Builder setCustomerRightsTokenConfig(@NonNull CustomerRightsTokenConfig customerRightsTokenConfig)
public HttpRequestConfig.Builder addRequestHeaders(@Nullable java.util.Map<java.lang.String,java.lang.String> requestHeaders)
requestHeaders
- the request headers mappublic HttpRequestConfig.Builder addRequestHeader(@NonNull java.lang.String headerKey, @NonNull java.lang.String headerValue)
headerKey
- the header keyheaderValue
- the header valuepublic HttpRequestConfig.Builder addQueryParameters(@Nullable java.util.Map<java.lang.String,java.lang.String> queryParameters)
queryParameters
- the query parameterspublic HttpRequestConfig.Builder addQueryParameter(@NonNull java.lang.String queryParameterKey, @NonNull java.lang.String queryParameterValue)
queryParameterKey
- the query parameter keyqueryParameterValue
- the query parameter valuepublic HttpRequestConfig build()