You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.base.devserver.util.

Class BrowserLauncher

  • public class BrowserLauncher
    extends Object

    Utilities for launching a browser.

    • Method Detail

      • launch

        public static void launch​(String location)

        Launch a local browser using the given location URL.

        Parameters:

        location - the URL to open

      • launch

        public static void launch​(String location,
                                  String alternativeText)

        Launch a local browser using the given location URL.

        If opening a browser fails, log the given text instead.

        Parameters:

        location - the URL to open

        alternativeText - the text to show if launching fails