ClientApppublic class UrlLauncher extends Object implements ClientApp
Handles Galeon, Internet Explorer, Konqueror, Links, Lynx, Mozilla, Mozilla Firefox, Netscape, Opera, and Safari.
| Constructor | Description |
|---|---|
UrlLauncher() |
Constructor from SysTray
|
UrlLauncher(I2PAppContext context,
ClientAppManager mgr,
String[] args) |
ClientApp constructor used from clients.config
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getDisplayName() |
ClientApp interface
|
String |
getName() |
ClientApp interface
|
ClientAppState |
getState() |
ClientApp interface
|
static void |
main(String[] args) |
Obsolete, now uses ClientApp interface
|
boolean |
openUrl(String url) |
Discovers the operating system the installer is running under and tries
to launch the given URL using the default browser for that platform; if
unsuccessful, an attempt is made to launch the URL using the most common
browsers.
|
boolean |
openUrl(String url,
String browser) |
Opens the given URL with the given browser.
|
void |
shutdown(String[] args) |
ClientApp interface
|
void |
startup() |
ClientApp interface
|
public UrlLauncher(I2PAppContext context, ClientAppManager mgr, String[] args)
public UrlLauncher()
public boolean openUrl(String url) throws IOException
url - The URL to open.true if the operation was successful, otherwise
false.IOExceptionpublic boolean openUrl(String url, String browser) throws IOException
url - The URL to open.browser - The browser to use.true if the operation was successful,
otherwise false.IOExceptionpublic void startup()
public ClientAppState getState()
public String getName()
public String getDisplayName()
getDisplayName in interface ClientApppublic void shutdown(String[] args)
public static void main(String[] args)