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 (package private) static boolean
DEBUG
private static java.lang.reflect.Method
desktopBrowseMethod
(package private) static java.lang.Exception
desktopException
private static java.lang.Object
desktopObject
static java.lang.String
execCommand
static boolean
launchViaExec
private static boolean
launchViaExecFailed
private static java.util.regex.Pattern
validExec
-
Constructor Summary
Constructors Constructor Description LaunchBrowser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static boolean
desktopFeasible()
(package private) static java.lang.Process
launchViaExec(java.net.URL url)
static boolean
showDocument(java.net.URL url)
attempt to show the given URL.(package private) static boolean
showDocumentViaDesktop(java.net.URL u)
(package private) static boolean
showDocumentViaExec(java.net.URL url)
(package private) static void
viaDesktop(java.net.URI u)
(package private) static boolean
webstartFeasible()
-
-
-
Field Detail
-
validExec
private static java.util.regex.Pattern validExec
-
execCommand
public static final java.lang.String execCommand
-
launchViaExec
public static final boolean launchViaExec
-
desktopObject
private static java.lang.Object desktopObject
-
desktopBrowseMethod
private static java.lang.reflect.Method desktopBrowseMethod
-
launchViaExecFailed
private static boolean launchViaExecFailed
-
DEBUG
static boolean DEBUG
-
desktopException
static final java.lang.Exception desktopException
-
-
Method Detail
-
desktopFeasible
static boolean desktopFeasible()
-
webstartFeasible
static boolean webstartFeasible()
-
showDocumentViaDesktop
static boolean showDocumentViaDesktop(java.net.URL u)
-
viaDesktop
static void viaDesktop(java.net.URI u) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
showDocumentViaExec
static boolean showDocumentViaExec(java.net.URL url)
-
launchViaExec
static java.lang.Process launchViaExec(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
-
-