Package com.brightcove.player.network
Class HttpRequestConfig
- java.lang.Object
- 
- com.brightcove.player.network.HttpRequestConfig
 
- 
 public class HttpRequestConfig extends java.lang.ObjectAn immutable configuration class whose values are used as part of an HTTP request, either as query parameters or as headers.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classHttpRequestConfig.BuilderThe HttpRequestConfig Builder.
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringKEY_AD_CONFIG_IDDefines the expected key for an adConfig as a query parameter in a catalog request.static java.lang.StringKEY_DELIVERY_RULE_CONFIG_IDDefines the expected key for a delivery rule as a query parameter in a catalog request.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequestConfig.BuilderbuildUpon()Creates a newHttpRequestConfig.Builderusing the currentHttpRequestConfiginstance.static HttpRequestConfigempty()java.lang.StringgetBrightcoveAuthorizationToken()Gets the Brightcove authorization token.CustomerRightsTokenConfiggetCustomerRightsTokenConfig()static HttpRequestConfiggetInstance()java.util.Map<java.lang.String,java.lang.String>getQueryParameters()Gets the HTTP request query parameters as a map of key-value pairs.java.util.Map<java.lang.String,java.lang.String>getRequestHeaders()Gets the HTTP request headers as a map of key-value pairs.
 
- 
- 
- 
Field Detail- 
KEY_DELIVERY_RULE_CONFIG_IDpublic static final java.lang.String KEY_DELIVERY_RULE_CONFIG_ID Defines the expected key for a delivery rule as a query parameter in a catalog request.- See Also:
- Constant Field Values
 
 - 
KEY_AD_CONFIG_IDpublic static final java.lang.String KEY_AD_CONFIG_ID Defines the expected key for an adConfig as a query parameter in a catalog request.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
emptypublic static HttpRequestConfig empty() 
 - 
getInstancepublic static HttpRequestConfig getInstance() 
 - 
buildUponpublic HttpRequestConfig.Builder buildUpon() Creates a newHttpRequestConfig.Builderusing the currentHttpRequestConfiginstance.- Returns:
- An HttpRequestConfig.Builderinitialized with the parameters of this instance.
 
 - 
getBrightcoveAuthorizationToken@NonNull public java.lang.String 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@NonNull public CustomerRightsTokenConfig getCustomerRightsTokenConfig() 
 - 
getRequestHeaders@NonNull public java.util.Map<java.lang.String,java.lang.String> getRequestHeaders() Gets the HTTP request headers as a map of key-value pairs.- Returns:
- the request headers
 
 - 
getQueryParameters@NonNull public java.util.Map<java.lang.String,java.lang.String> getQueryParameters() Gets the HTTP request query parameters as a map of key-value pairs.- Returns:
- the query parameters
 
 
- 
 
-