edu.stanford.ejalbert.launching.misc
Class SunOSBrowserLaunching

java.lang.Object
  extended byedu.stanford.ejalbert.launching.misc.UnixNetscapeBrowserLaunching
      extended byedu.stanford.ejalbert.launching.misc.SunOSBrowserLaunching
All Implemented Interfaces:
IBrowserLaunching

public class SunOSBrowserLaunching
extends UnixNetscapeBrowserLaunching

Launches a default browser on SunOS Unix systems using the sdtwebclient command.

Author:
Olivier Hochreutiner

Field Summary
static String CONFIGFILE_SUNOS
          config file for SunOS.
 
Fields inherited from class edu.stanford.ejalbert.launching.misc.UnixNetscapeBrowserLaunching
CONFIGFILE_LINUX_UNIX, logger
 
Fields inherited from interface edu.stanford.ejalbert.launching.IBrowserLaunching
BROWSER_DEFAULT, BROWSER_SYSTEM_PROPERTY, PROP_KEY_BROWSER_PREFIX, PROP_KEY_DELIMITER, PROTOCOL_FILE, PROTOCOL_HTTP, PROTOCOL_MAILTO
 
Constructor Summary
SunOSBrowserLaunching(AbstractLogger logger)
          Passes the logger and config file for SunOS to its super class.
 
Method Summary
 void openUrl(String urlString)
          Opens a url using the default browser.
 
Methods inherited from class edu.stanford.ejalbert.launching.misc.UnixNetscapeBrowserLaunching
getBrowser, getBrowserList, getNewWindowPolicy, initialize, openUrl, openUrl, openUrlWithBrowser, setNewWindowPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGFILE_SUNOS

public static final String CONFIGFILE_SUNOS
config file for SunOS.

See Also:
Constant Field Values
Constructor Detail

SunOSBrowserLaunching

public SunOSBrowserLaunching(AbstractLogger logger)
Passes the logger and config file for SunOS to its super class.

Parameters:
logger - AbstractLogger
Method Detail

openUrl

public void openUrl(String urlString)
             throws UnsupportedOperatingSystemException,
                    BrowserLaunchingExecutionException,
                    BrowserLaunchingInitializingException
Opens a url using the default browser. It uses sdtwebclient to launch the default browser. The sdtwebclient executable is mapped to IBrowserLaunching.BROWSER_DEFAULT.

Specified by:
openUrl in interface IBrowserLaunching
Overrides:
openUrl in class UnixNetscapeBrowserLaunching
Parameters:
urlString - String
Throws:
BrowserLaunchingExecutionException
UnsupportedOperatingSystemException
BrowserLaunchingInitializingException