|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.stanford.ejalbert.launching.misc.UnixNetscapeBrowserLaunching
public class UnixNetscapeBrowserLaunching
Tries several browsers (mozilla, netscape, firefox, opera, and konqueror). Most users will have at least one of these installed.
| Field Summary | |
|---|---|
private static int |
BROWSER_COUNT
|
protected AbstractLogger |
logger
|
private java.util.Map |
unixBrowsers
list of supported unix/linux browsers |
| Fields inherited from interface edu.stanford.ejalbert.launching.IBrowserLaunching |
|---|
BROWSER_DEFAULT, PROTOCOL_FILE, PROTOCOL_HTTP, PROTOCOL_MAILTO |
| Constructor Summary | |
|---|---|
UnixNetscapeBrowserLaunching(AbstractLogger logger)
|
|
| Method Summary | |
|---|---|
java.util.List |
getBrowserList()
Returns a list of browsers to be used for browser targetting. |
void |
initialize()
Use the which command to find out which browsers are available. |
void |
openUrl(java.lang.String urlString)
This implementation will cause the calling thread to block until the browser exits. |
void |
openUrl(java.lang.String browser,
java.lang.String urlString)
Allows user to target a specific browser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int BROWSER_COUNT
private java.util.Map unixBrowsers
protected final AbstractLogger logger
| Constructor Detail |
|---|
public UnixNetscapeBrowserLaunching(AbstractLogger logger)
| Method Detail |
|---|
public void initialize()
throws BrowserLaunchingInitializingException
initialize in interface IBrowserLaunchingBrowserLaunchingInitializingException
public void openUrl(java.lang.String urlString)
throws UnsupportedOperatingSystemException,
BrowserLaunchingExecutionException,
BrowserLaunchingInitializingException
openUrl in interface IBrowserLaunchingurlString - String
BrowserLaunchingExecutionException
UnsupportedOperatingSystemException
BrowserLaunchingInitializingException
public void openUrl(java.lang.String browser,
java.lang.String urlString)
throws UnsupportedOperatingSystemException,
BrowserLaunchingExecutionException,
BrowserLaunchingInitializingException
IBrowserLaunchinggetBrowserList method.
If the call to the requested browser fails, the code will fail over to the default browser.
openUrl in interface IBrowserLaunchingbrowser - StringurlString - String
UnsupportedOperatingSystemException
BrowserLaunchingExecutionException
BrowserLaunchingInitializingExceptionpublic java.util.List getBrowserList()
getBrowserList in interface IBrowserLaunching
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||