org.dvb.locator.ott
Class HTTPLocator
java.lang.Object
org.davic.net.Locator
org.dvb.locator.ott.HTTPLocator
- All Implemented Interfaces:
- javax.tv.locator.Locator
public class HTTPLocator
- extends Locator
Represents a reference to an IP service accessed by HTTP.
Constructor Summary |
HTTPLocator(java.lang.String url)
Creates a HTTPLocator from the specified URL. |
HTTPLocator(java.lang.String url,
int serviceID)
Creates a HTTPLocator from the specified URL. |
Method Summary |
int |
getServiceID()
Returns the serviceID specified when this HTTPLocator was constructed. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.tv.locator.Locator |
equals, hashCode |
HTTPLocator
public HTTPLocator(java.lang.String url)
throws java.net.MalformedURLException
- Creates a HTTPLocator from the specified URL.
- Parameters:
url
- - an "HTTP:" url.
- Throws:
java.net.MalformedURLException
- if the url is not a correct "HTTP:" url.
HTTPLocator
public HTTPLocator(java.lang.String url,
int serviceID)
throws java.net.MalformedURLException,
java.lang.IllegalArgumentException
- Creates a HTTPLocator from the specified URL.
- Parameters:
url
- - an "HTTP:" url.serviceID
- - a DVB-SI serviceID or MPEG program number to identify one
service in a
multi-program transport stream.
- Throws:
java.net.MalformedURLException
- if the url is not a correct "HTTP:" url.
java.lang.IllegalArgumentException
- if the service ID is less than 0 or
greater than 0xffff.
getServiceID
public int getServiceID()
- Returns the serviceID specified when this HTTPLocator was constructed.
- Returns:
- the serviceID specified when this HTTPLocator or -1 if no
serviceID was specified.