|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WWWBrowserService
Service representing a resident WWW browser
Method Summary | |
---|---|
void |
addBookmark(java.net.URL bookmarkUrl,
java.lang.String name)
Add a bookmark to the list of bookmarks in the current application. |
boolean |
areFramesSupported()
Check whether frames are supported by the browser and enabled. |
java.lang.String[] |
getAcceptedMediaTypes()
Returns an array of supported MIME types, e.g. |
java.lang.String[] |
getSupportedPlugins()
Returns an array of names of installed plug-ins. |
java.lang.String |
getUserAgent()
Returns the string used in the HTTP "User-Agent" header. |
void |
setHomepage(java.net.URL defaultUrl)
Set the home page for the web browser. |
void |
setInitialURL(java.net.URL initialUrl)
Set the initial URL to be used when the WWW browser starts. |
Methods inherited from interface org.dvb.internet.InternetClientService |
---|
canRunApplication, getName, getServiceType, getSupportedClientServices, hasMultipleInstances, retrieveDetails |
Methods inherited from interface javax.tv.service.Service |
---|
equals, getLocator, hashCode |
Method Detail |
---|
java.lang.String[] getAcceptedMediaTypes()
java.lang.String[] getSupportedPlugins()
java.lang.String getUserAgent()
boolean areFramesSupported()
void setHomepage(java.net.URL defaultUrl)
defaultUrl
- the URL to be used as the default when the application is launched
with no starting URL.
java.lang.SecurityException
- if the caller does not have a HomePagePermission
java.lang.IllegalArgumentException
- if the URL scheme is not supported by the
application. Different classes which implement or extend this interface may implement
different schemes.void addBookmark(java.net.URL bookmarkUrl, java.lang.String name) throws EntryExistsException, java.io.IOException
bookmarkUrl
- the URL that should be added to the bookmarks list.name
- the name that should be displayed for that URL in the bookmarks list.
EntryExistsException
- if a bookmark with both the same name
and the same URL already exists in the bookmarks list.
java.lang.IllegalArgumentException
- if the URL scheme is not supported
by the application.
IOException
- if no more bookmarks can be added due to a lack of storage
space or other limitation in the clientvoid setInitialURL(java.net.URL initialUrl)
initialUrl
- the URL to use
java.lang.IllegalArgumentException
- if the URL scheme is not supported by the application. Different classes which implement or extend this interface may implement different schemes.
java.lang.SecurityException
- if the caller does not have a SocketPermission
for the host part of the specified URL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |