Class XBasicService

java.lang.Object
net.sourceforge.jnlp.services.XBasicService
All Implemented Interfaces:
BasicService

class XBasicService extends Object implements BasicService
The BasicService JNLP service.
Version:
$Revision: 1.10 $
  • Field Details

    • LOG

      private static final Logger LOG
  • Constructor Details

    • XBasicService

      XBasicService()
  • Method Details

    • getCodeBase

      public URL 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:
      getCodeBase in interface BasicService
    • isOffline

      public boolean isOffline()
      Return true if the Environment is Offline
      Specified by:
      isOffline in interface BasicService
    • findFirstURLFromJNLPFile

      private URL 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:
      isWebBrowserSupported in interface BasicService
    • showDocument

      public boolean showDocument(URL url)
      Show a document.
      Specified by:
      showDocument in interface BasicService
      Returns:
      whether the document was opened
    • exec

      private boolean exec(String cmd, String url)
    • promptForCommand

      private String promptForCommand(String targetUrl, boolean aa) throws IOException
      Throws:
      IOException