FindBugs™ 1.3.9

edu.umd.cs.findbugs.util
Class LaunchBrowser

java.lang.Object
  extended by edu.umd.cs.findbugs.util.LaunchBrowser

public class LaunchBrowser
extends java.lang.Object


Field Summary
static boolean launchFirefox
           
 
Constructor Summary
LaunchBrowser()
           
 
Method Summary
static boolean desktopFeasible()
           
static java.lang.Process launchFirefox(java.net.URL url)
           
static boolean showDocument(java.net.URL url)
          attempt to show the given URL.
static boolean showDocumentViaDesktop(java.net.URL u)
           
static boolean showDocumentViaExec(java.net.URL url)
           
static boolean showViaWebStart(java.net.URL url)
           
static void viaDesktop(java.net.URI u)
           
static java.lang.Boolean viaWebStart(java.net.URL url)
           
static boolean webstartFeasible()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.