Class XBasicService

  • All Implemented Interfaces:
    BasicService

    class XBasicService
    extends java.lang.Object
    implements BasicService
    The BasicService JNLP service.
    Version:
    $Revision: 1.10 $
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  XBasicService.PromptUrl  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      XBasicService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private boolean exec​(java.lang.String cmd, java.lang.String url)  
      private java.net.URL findFirstURLFromJNLPFile()
      Return the first URL from the jnlp file Or a default URL if no url found in JNLP file
      java.net.URL getCodeBase()
      Returns the codebase of the application, applet, or installer.
      boolean isOffline()
      Return true if the Environment is Offline
      boolean isWebBrowserSupported()
      Return true if a Web Browser is Supported
      private java.lang.String promptForCommand​(java.lang.String targetUrl, boolean aa)  
      boolean showDocument​(java.net.URL url)
      Show a document.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final Logger LOG
    • Constructor Detail

      • XBasicService

        XBasicService()
    • Method Detail

      • getCodeBase

        public java.net.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 java.net.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​(java.net.URL url)
        Show a document.
        Specified by:
        showDocument in interface BasicService
        Returns:
        whether the document was opened
      • exec

        private boolean exec​(java.lang.String cmd,
                             java.lang.String url)
      • promptForCommand

        private java.lang.String promptForCommand​(java.lang.String targetUrl,
                                                  boolean aa)
                                           throws java.io.IOException
        Throws:
        java.io.IOException