Class LaunchBrowser


  • public class LaunchBrowser
    extends java.lang.Object
    • Field Detail

      • launchFirefox

        public static final boolean launchFirefox
    • Constructor Detail

      • LaunchBrowser

        public LaunchBrowser()
    • Method Detail

      • desktopFeasible

        public static boolean desktopFeasible()
      • webstartFeasible

        public static boolean webstartFeasible()
      • showDocumentViaDesktop

        public static boolean showDocumentViaDesktop​(java.net.URL u)
      • viaDesktop

        public static void viaDesktop​(java.net.URI u)
                               throws java.lang.IllegalAccessException,
                                      java.lang.reflect.InvocationTargetException,
                                      java.net.URISyntaxException
        Throws:
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        java.net.URISyntaxException
      • viaWebStart

        public static java.lang.Boolean viaWebStart​(java.net.URL url)
                                             throws java.lang.IllegalArgumentException,
                                                    java.lang.IllegalAccessException,
                                                    java.lang.reflect.InvocationTargetException
        Throws:
        java.lang.IllegalArgumentException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • showViaWebStart

        public static boolean showViaWebStart​(java.net.URL url)
      • showDocumentViaExec

        public static boolean showDocumentViaExec​(java.net.URL url)
      • launchFirefox

        public static java.lang.Process launchFirefox​(java.net.URL url)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • showDocument

        public static boolean showDocument​(java.net.URL url)
        attempt to show the given URL. will first attempt via the JNLP api, then will try showViaExec().
        Parameters:
        url - the URL
        Returns:
        true on success