Otv Sdk Config
Configuration for the OpenTV SDK. This class is used to configure the SDK with the necessary parameters for connecting to the OpenTV services. Through these parameters, APIs of the OpenTV service can be derived, in this style http(s)://{prefix}.{tenantId}.{host}:{port}/..., e.g. https://api.sales.opentv.com/...
Parameters
The tenant ID for the OpenTV service. Required
The host for the OpenTV service. Default is "opentv.com".
The port for the OpenTV service. Default is 443.
The prefix for the OpenTV service. Default is "api".
Whether to use TLS for the connection. Default is true.
The ID of the tenant to which the request is being targeted and sent in IAS tenant headers. Default is "nagra".
Constructors
Java-compatible constructor using the default IAS tenant ID.
Creates a configuration from a URI base URL in the style https://api.sales.opentv.com.
Creates a configuration from a URL base URL in the style https://api.sales.opentv.com.
Creates a configuration from individual OpenTV service parameters in the style http(s)://{prefix}.{tenantId}.{host}:{port}.
Functions
Builds the base URL for the OpenTV service from this configuration's fields.
Builds IAS request headers for legacy v2 endpoints.
Builds IAS request headers for v3 endpoints.
Sets the v2 authorizer key. Defaults to "nagra".
Sets IAS headers appended to both v2 and v3 IAS requests. Headers from this map override default SDK headers on key collisions.
Sets the optional v2 country-code header, or null to omit it.
Sets the optional v3 MAC address header, or null to omit it.
Sets the optional v2 type header, or null to omit it.
Sets IAS headers appended only to v2 IAS requests. Headers from this map override both default and common IAS headers on key collisions.
Sets IAS headers appended only to v3 IAS requests. Headers from this map override both default and common IAS headers on key collisions.