-
public class 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 Classes Modifier and Type Class Description public class
HttpRequestConfig.Builder
The HttpRequestConfig Builder.
-
Field Summary
Fields Modifier and Type Field Description private final String
brightcoveAuthorizationToken
private final CustomerRightsTokenConfig
customerRightsTokenConfig
private Map<String, String>
requestHeaders
private Map<String, String>
queryParameters
private int
connectTimeout
private int
readTimeout
public final static String
KEY_DELIVERY_RULE_CONFIG_ID
public final static String
KEY_AD_CONFIG_ID
-
Method Summary
Modifier and Type Method Description String
getBrightcoveAuthorizationToken()
Gets the Brightcove authorization token.Depending on your VideoCloud account configuration, this token might be required in orderto successfully make certain requests. CustomerRightsTokenConfig
getCustomerRightsTokenConfig()
Map<String, String>
getRequestHeaders()
Gets the HTTP request headers as a map of key-value pairs. Map<String, String>
getQueryParameters()
Gets the HTTP request query parameters as a map of key-value pairs. int
getConnectTimeout()
Gets the current value for the connection timeout int
getReadTimeout()
Gets the current value for the read timeout static HttpRequestConfig
empty()
static HttpRequestConfig
getInstance()
HttpRequestConfig.Builder
buildUpon()
Creates a new Builder using the current HttpRequestConfig instance. -
-
Method Detail
-
getBrightcoveAuthorizationToken
@NonNull() String getBrightcoveAuthorizationToken()
Gets the Brightcove authorization token.Depending on your VideoCloud account configuration, this token might be required in orderto successfully make certain requests.
-
getCustomerRightsTokenConfig
@NonNull() CustomerRightsTokenConfig getCustomerRightsTokenConfig()
-
getRequestHeaders
@NonNull() Map<String, String> getRequestHeaders()
Gets the HTTP request headers as a map of key-value pairs.
-
getQueryParameters
@NonNull() Map<String, String> getQueryParameters()
Gets the HTTP request query parameters as a map of key-value pairs.
-
getConnectTimeout
int getConnectTimeout()
Gets the current value for the connection timeout
-
getReadTimeout
int getReadTimeout()
Gets the current value for the read timeout
-
empty
static HttpRequestConfig empty()
-
getInstance
static HttpRequestConfig getInstance()
-
buildUpon
HttpRequestConfig.Builder buildUpon()
Creates a new Builder using the current HttpRequestConfig instance.
-
-
-
-