edu.stanford.ejalbert.launching.macos
Class MacOs2_0BrowserLaunching
java.lang.Object
edu.stanford.ejalbert.launching.macos.MacOsBrowserLaunching
edu.stanford.ejalbert.launching.macos.MacOs2_0BrowserLaunching
- All Implemented Interfaces:
- IBrowserLaunching
- public class MacOs2_0BrowserLaunching
- extends MacOsBrowserLaunching
- Author:
- Markus Gebhard
Method Summary |
List |
getBrowserList()
Returns a list of browsers to be used for browser targetting. |
void |
initialize()
Performs any initialization needed for the particular O/S. |
void |
openUrl(String urlString)
Opens the passed url in the system's default browser. |
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 |
MacOs2_0BrowserLaunching
public MacOs2_0BrowserLaunching()
initialize
public void initialize()
throws BrowserLaunchingInitializingException
- Description copied from interface:
IBrowserLaunching
- Performs any initialization needed for the particular O/S.
- Throws:
BrowserLaunchingInitializingException
openUrl
public void openUrl(String urlString)
throws UnsupportedOperatingSystemException,
BrowserLaunchingExecutionException,
BrowserLaunchingInitializingException
- Description copied from interface:
IBrowserLaunching
- Opens the passed url in the system's default browser.
- Parameters:
urlString
- String
- Throws:
UnsupportedOperatingSystemException
BrowserLaunchingExecutionException
BrowserLaunchingInitializingException
openUrl
public void openUrl(String browser,
String urlString)
throws UnsupportedOperatingSystemException,
BrowserLaunchingExecutionException,
BrowserLaunchingInitializingException
- Description copied from interface:
IBrowserLaunching
- Allows user to target a specific browser. The names of
potential browsers can be accessed via the
getBrowserList
method.
If the call to the requested browser fails, the code will
fail over to the default browser.
- Parameters:
browser
- StringurlString
- String
- Throws:
BrowserLaunchingExecutionException
BrowserLaunchingInitializingException
UnsupportedOperatingSystemException
getBrowserList
public List getBrowserList()
- Returns a list of browsers to be used for browser targetting.
This list will always contain at least one item--the BROWSER_DEFAULT.
- Returns:
- List