Package com.brightcove.player.network
Class HttpRequestConfig
java.lang.Object
com.brightcove.player.network.HttpRequestConfig
An immutable configuration class whose values are used as part of an HTTP request,
either as query parameters or as headers.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The HttpRequestConfig Builder. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newHttpRequestConfig.Builder
using the currentHttpRequestConfig
instance.static HttpRequestConfig
empty()
Gets the Brightcove authorization token.static HttpRequestConfig
Gets the HTTP request query parameters as a map of key-value pairs.Gets the HTTP request headers as a map of key-value pairs.
-
Field Details
-
KEY_DELIVERY_RULE_CONFIG_ID
Defines the expected key for a delivery rule as a query parameter in a catalog request.- See Also:
-
KEY_AD_CONFIG_ID
Defines the expected key for an adConfig as a query parameter in a catalog request.- See Also:
-
-
Method Details
-
empty
-
getInstance
-
buildUpon
Creates a newHttpRequestConfig.Builder
using the currentHttpRequestConfig
instance.- Returns:
- An
HttpRequestConfig.Builder
initialized with the parameters of this instance.
-
getBrightcoveAuthorizationToken
Gets the Brightcove authorization token. Depending on your VideoCloud account configuration, this token might be required in order to successfully make certain requests.- Returns:
- the brightcove auth token
-
getCustomerRightsTokenConfig
-
getRequestHeaders
Gets the HTTP request headers as a map of key-value pairs.- Returns:
- the request headers
-
getQueryParameters
Gets the HTTP request query parameters as a map of key-value pairs.- Returns:
- the query parameters
-