Class HttpRequestConfig


  • public class HttpRequestConfig
    extends java.lang.Object
    An immutable configuration class whose values are used as part of an HTTP request, either as query parameters or as headers.
    • Field Detail

      • KEY_DELIVERY_RULE_CONFIG_ID

        public 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_ID

        public 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

      • 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
      • 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