All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dvb.internet.InternetClientService Maven / Gradle / Ivy

The newest version!
package org.dvb.internet;

import java.net.URL;
import javax.tv.service.*;
import javax.tv.service.navigation.*;
import java.io.*;

/**
 * The base class for the interface to resident applications that 
 * are supported by the internet access profile.
 * 
 * 

The lifecycle of an application which implements this interface or its subclasses * is for a broadcast service. The application is started by selecting the appropriate * service (using the Locator object returned by calls to getLocator() * ). If this service is selected in the service context which contains the * executing application, any currently presented content will be stopped and the * application will be destroyed before the client is launched. Calling destroy() * or stop() on the service context in which the client is running will cause * the client to be terminated. * *

Methods in this API will not affect the lifecycle of the calling application. */ public interface InternetClientService extends javax.tv.service.Service { /** * Returns true if the application can run without having to stop the downloaded MHP * application. * * @return true if the application can be run without stopping the calling * application, or false otherwise. */ public boolean canRunApplication(); /** * This method will always fail when called for an InternetClient. * The requestor will always be notified of a failure of type DATA_UNAVAILABLE. * * @param requestor - The SIRequestor to be notified when this retrieval operation completes. * @return An SIRequest object identifying the request */ public SIRequest retrieveDetails(SIRequestor requestor); /** * Returns a short service name or an acronym. In the case of subclasses of InternetClient, * the returned value is implementation dependent * * @return A string representing this service's short name. */ public java.lang.String getName(); /** * This method indicates whether the service represented by this Service * is available on multiple transports. This method has no effect in * the case of an InternetClient * * @return FALSE always for InternetClient instances */ public boolean hasMultipleInstances(); /** * Returns the type of this service. In the case of internet clients, one * of the service types defined in the InternetServiceType class shall be * returned. * * @return The service type of this Service. */ public ServiceType getServiceType(); /** * Returns all InternetClientServices supported by the same * application as this one. This InternetClientService is included in the array. * * @return an array of InternetClientServices */ public InternetClientService[] getSupportedClientServices(); }