public final class OpenBrowser extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
OpenBrowser() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
displayUrl(java.lang.String url)
Displays an external URL using platform associated software.
|
static java.lang.String |
displayUrl(java.net.URI uri)
Displays an external URI using platform associated software.
|
private OpenBrowser()
public static java.lang.String displayUrl(java.net.URI uri)
uri
- The URI to displaynull
for success or a string in case of an error.java.lang.IllegalStateException
- if no platform is set to which opening the URL can be dispatched,
PlatformManager.getPlatform()
public static java.lang.String displayUrl(java.lang.String url)
url
- The URL to displaynull
for success or a string in case of an error.java.lang.IllegalStateException
- if no platform is set to which opening the URL can be dispatched,
PlatformManager.getPlatform()