Class NativeWebBrowserLauncher


  • @OpenApiAll
    public class NativeWebBrowserLauncher
    extends java.lang.Object
    NativeWebBrowserLauncher provides a static method to open the system default web browser to the given URL. It may support other protocols depending on the system (mailto, ftp, etc.), but this has not been accurate tested and is not guaranteed to work.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void openURL​(java.lang.String url)
      Attempts to open the given URL in the default web browser.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NativeWebBrowserLauncher

        public NativeWebBrowserLauncher()
    • Method Detail

      • openURL

        public static void openURL​(java.lang.String url)
                            throws java.io.IOException
        Attempts to open the given URL in the default web browser.
        Parameters:
        url - the URL to open
        Throws:
        java.io.IOException - if the web browser is not found or does not run