Class LaunchBrowser

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

public class LaunchBrowser extends Object
  • Field Details

    • validExec

      private static Pattern validExec
    • execCommand

      public static final String execCommand
    • launchViaExec

      public static final boolean launchViaExec
    • desktopObject

      private static Object desktopObject
    • desktopBrowseMethod

      private static Method desktopBrowseMethod
    • launchViaExecFailed

      private static boolean launchViaExecFailed
    • DEBUG

      static boolean DEBUG
    • desktopException

      static final Exception desktopException
  • Constructor Details

    • LaunchBrowser

      public LaunchBrowser()
  • Method Details

    • desktopFeasible

      static boolean desktopFeasible()
    • webstartFeasible

      static boolean webstartFeasible()
    • showDocumentViaDesktop

      static boolean showDocumentViaDesktop(URL u)
    • viaDesktop

      static void viaDesktop(URI u) throws IllegalAccessException, InvocationTargetException
      Throws:
      IllegalAccessException
      InvocationTargetException
    • showDocumentViaExec

      static boolean showDocumentViaExec(URL url)
    • launchViaExec

      static Process launchViaExec(URL url) throws IOException
      Throws:
      IOException
    • showDocument

      public static boolean showDocument(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