Package edu.umd.cs.findbugs.util
Class LaunchBrowser
- java.lang.Object
-
- edu.umd.cs.findbugs.util.LaunchBrowser
-
public class LaunchBrowser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static booleanlaunchFirefox
-
Constructor Summary
Constructors Constructor Description LaunchBrowser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandesktopFeasible()static java.lang.ProcesslaunchFirefox(java.net.URL url)static booleanshowDocument(java.net.URL url)attempt to show the given URL.static booleanshowDocumentViaDesktop(java.net.URL u)static booleanshowDocumentViaExec(java.net.URL url)static booleanshowViaWebStart(java.net.URL url)static voidviaDesktop(java.net.URI u)static java.lang.BooleanviaWebStart(java.net.URL url)static booleanwebstartFeasible()
-
-
-
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.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.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.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.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
-
-