@Component public class BrowserSupport extends Object
| Constructor and Description |
|---|
BrowserSupport() |
| Modifier and Type | Method and Description |
|---|---|
io.vavr.control.Try<Void> |
openUrl(String url)
Opens a given URL or a pop-up with the error if it could not do so.
|
io.vavr.control.Try<Void> |
openUrl(URL url)
Opens a given URL or a pop-up with the error if it could not do so.
|
public io.vavr.control.Try<Void> openUrl(String url)
url - The URL as a String. Must conform to URL.URL(String).Try that can be either Try.Success (and empty) or Try.Failure and contain an
exception.Try.onFailure(Consumer)Copyright © 2018. All rights reserved.