@UnstableApi
public final class BaseUrl


A base URL, as defined by ISO 23009-1, 2nd edition, 5.6. and ETSI TS 103 285 V1.2.1, 10.8.2.1

Summary

Constants

static final int

The default priority.

static final int

The default weight.

static final int
PRIORITY_UNSET = -2147483648

Constant representing an unset priority in a manifest that does not declare a DVB profile.

Public fields

final int

The priority.

final String

The service location.

final String

The URL.

final int

The weight.

Public constructors

Creates an instance with an unset priority, default weight and using the URL as the service location.

BaseUrl(String url, String serviceLocation, int priority, int weight)

Creates an instance.

Public methods

boolean
int

Constants

DEFAULT_DVB_PRIORITY

public static final int DEFAULT_DVB_PRIORITY = 1

The default priority.

DEFAULT_WEIGHT

public static final int DEFAULT_WEIGHT = 1

The default weight.

PRIORITY_UNSET

public static final int PRIORITY_UNSET = -2147483648

Constant representing an unset priority in a manifest that does not declare a DVB profile.

Public fields

priority

public final int priority

The priority.

serviceLocation

public final String serviceLocation

The service location.

url

public final String url

The URL.

weight

public final int weight

The weight.

Public constructors

BaseUrl

public BaseUrl(String url)

Creates an instance with an unset priority, default weight and using the URL as the service location.

BaseUrl

public BaseUrl(String url, String serviceLocation, int priority, int weight)

Creates an instance.

Public methods

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()