|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.ejalbert.launching.misc.UnixNetscapeBrowserLaunching
Tries several browsers (mozilla, netscape, firefox, opera, and konqueror).
Most users will have at least one of these installed. The types are
defined in StandardUnixBrowser
.
Field Summary | |
protected AbstractLogger |
logger
|
Fields inherited from interface edu.stanford.ejalbert.launching.IBrowserLaunching |
BROWSER_DEFAULT, PROTOCOL_FILE, PROTOCOL_HTTP, PROTOCOL_MAILTO |
Constructor Summary | |
UnixNetscapeBrowserLaunching(AbstractLogger logger)
|
Method Summary | |
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(String urlString)
This implementation will cause the calling thread to block until the browser exits. |
void |
openUrl(String browser,
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 |
protected final AbstractLogger logger
Constructor Detail |
public UnixNetscapeBrowserLaunching(AbstractLogger logger)
Method Detail |
public void initialize() throws BrowserLaunchingInitializingException
initialize
in interface IBrowserLaunching
BrowserLaunchingInitializingException
public void openUrl(String urlString) throws UnsupportedOperatingSystemException, BrowserLaunchingExecutionException, BrowserLaunchingInitializingException
openUrl
in interface IBrowserLaunching
urlString
- String
BrowserLaunchingExecutionException
UnsupportedOperatingSystemException
BrowserLaunchingInitializingException
public void openUrl(String browser, String urlString) throws UnsupportedOperatingSystemException, BrowserLaunchingExecutionException, BrowserLaunchingInitializingException
IBrowserLaunching
getBrowserList
method.
If the call to the requested browser fails, the code will fail over to the default browser.
openUrl
in interface IBrowserLaunching
browser
- StringurlString
- String
BrowserLaunchingExecutionException
BrowserLaunchingInitializingException
UnsupportedOperatingSystemException
public List getBrowserList()
getBrowserList
in interface IBrowserLaunching
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |