public interface WWWBrowserService extends InternetClientService
| Modifier and Type | Method and Description |
|---|---|
void |
addBookmark(URL bookmarkUrl,
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.
|
String[] |
getAcceptedMediaTypes()
Returns an array of supported MIME types, e.g.
|
String[] |
getSupportedPlugins()
Returns an array of names of installed plug-ins.
|
String |
getUserAgent()
Returns the string used in the HTTP "User-Agent" header.
|
void |
setHomepage(URL defaultUrl)
Set the home page for the web browser.
|
void |
setInitialURL(URL initialUrl)
Set the initial URL to be used when the WWW browser starts.
|
canRunApplication, getName, getServiceType, getSupportedClientServices, hasMultipleInstances, retrieveDetailsequals, getLocator, hashCodeString[] getAcceptedMediaTypes()
String[] getSupportedPlugins()
String getUserAgent()
boolean areFramesSupported()
void setHomepage(URL defaultUrl)
defaultUrl - the URL to be used as the default when the application is launched
with no starting URL.SecurityException - if the caller does not have a HomePagePermissionIllegalArgumentException - if the URL scheme is not supported by the
application. Different classes which implement or extend this interface may implement
different schemes.void addBookmark(URL bookmarkUrl, String name) throws EntryExistsException, 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.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(URL initialUrl)
initialUrl - the URL to useIllegalArgumentException - if the URL scheme is not supported by the application. Different classes which implement or extend this interface may implement different schemes.SecurityException - if the caller does not have a SocketPermission
for the host part of the specified URLCopyright © 2012 code4tv.com. All Rights Reserved.