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
Nested ClassesModifier and TypeClassDescriptionstatic classThe HttpRequestConfig Builder. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCreates a newHttpRequestConfig.Builderusing the currentHttpRequestConfiginstance.static HttpRequestConfigempty()Gets the Brightcove authorization token.static HttpRequestConfigGets 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.Builderusing the currentHttpRequestConfiginstance.- Returns:
- An
HttpRequestConfig.Builderinitialized 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
-