public interface BasicService
BasicService interface provides access to the codebase
of the application, if an application is run in offline mode,
and simple interaction with the native browser on the
given platform.
This interface mimics loosely the AppletContext
functionality.
| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
getCodeBase()
Returns the codebase for the application.
|
boolean |
isOffline()
Determines if the system is offline.
|
boolean |
isWebBrowserSupported()
Checks if a Web browser is supported on the current platform and by the
given JNLP Client.
|
boolean |
showDocument(java.net.URL url)
Directs a browser on the client to show the given URL.
|
java.net.URL getCodeBase()
boolean isOffline()
true if the system is offline, otherwise falseboolean showDocument(java.net.URL url)
url - an URL giving the location of the document. A relative URL
will be relative to the codebase.true if the request succeded
false if the url is null or the request failed.boolean isWebBrowserSupported()
showDocument(java.net.URL)
will always return false.true if a Web browser is supported, otherwise falseCopyright © 1998, 2017, Oracle and/or its affiliates. All rights reserved.