Class XBasicService
java.lang.Object
net.sourceforge.jnlp.services.XBasicService
- All Implemented Interfaces:
BasicService
The BasicService JNLP service.
- Version:
- $Revision: 1.10 $
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprivate URLReturn the first URL from the jnlp file Or a default URL if no url found in JNLP fileReturns the codebase of the application, applet, or installer.booleanReturn true if the Environment is OfflinebooleanReturn true if a Web Browser is Supportedprivate StringpromptForCommand(String targetUrl, boolean aa) booleanshowDocument(URL url) Show a document.
-
Field Details
-
LOG
-
-
Constructor Details
-
XBasicService
XBasicService()
-
-
Method Details
-
getCodeBase
Returns the codebase of the application, applet, or installer. If the codebase was not specified in the JNLP element then the main JAR's location is returned. If no main JAR was specified then the location of the JAR containing the main class is returned.- Specified by:
getCodeBasein interfaceBasicService
-
isOffline
public boolean isOffline()Return true if the Environment is Offline- Specified by:
isOfflinein interfaceBasicService
-
findFirstURLFromJNLPFile
Return the first URL from the jnlp file Or a default URL if no url found in JNLP file -
isWebBrowserSupported
public boolean isWebBrowserSupported()Return true if a Web Browser is Supported- Specified by:
isWebBrowserSupportedin interfaceBasicService
-
showDocument
Show a document.- Specified by:
showDocumentin interfaceBasicService- Returns:
- whether the document was opened
-
exec
-
promptForCommand
- Throws:
IOException
-