ClientApp
public class UrlLauncher extends java.lang.Object implements ClientApp
Handles Galeon, Internet Explorer, Konqueror, Links, Lynx, Mozilla, Mozilla Firefox, Netscape, Opera, and Safari.
コンストラクタ | 説明 |
---|---|
UrlLauncher() |
Constructor from SysTray
|
UrlLauncher(I2PAppContext context,
ClientAppManager mgr,
java.lang.String[] args) |
ClientApp constructor used from clients.config
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
java.lang.String |
getDisplayName() |
ClientApp interface
|
java.lang.String |
getName() |
ClientApp interface
|
ClientAppState |
getState() |
ClientApp interface
|
static void |
main(java.lang.String[] args) |
Obsolete, now uses ClientApp interface
|
boolean |
openUrl(java.lang.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(java.lang.String url,
java.lang.String browser) |
Opens the given URL with the given browser.
|
void |
shutdown(java.lang.String[] args) |
ClientApp interface
|
void |
startup() |
ClientApp interface
|
public UrlLauncher(I2PAppContext context, ClientAppManager mgr, java.lang.String[] args)
public UrlLauncher()
public boolean openUrl(java.lang.String url) throws java.io.IOException
url
- The URL to open.true
if the operation was successful, otherwise
false
.java.io.IOException
public boolean openUrl(java.lang.String url, java.lang.String browser) throws java.io.IOException
url
- The URL to open.browser
- The browser to use.true
if the operation was successful,
otherwise false
.java.io.IOException
public void startup()
public ClientAppState getState()
public java.lang.String getName()
public java.lang.String getDisplayName()
getDisplayName
インタフェース内 ClientApp
public void shutdown(java.lang.String[] args)
public static void main(java.lang.String[] args)