com.tivoli.twg.guilibs
Class BrowserLauncher

java.lang.Object
  extended bycom.tivoli.twg.guilibs.BrowserLauncher

public class BrowserLauncher
extends java.lang.Object

This class provides the capability to launch a browser from within the Director Console. This class provides the capability to launch a browser that has been preconfigured in a properties file which details the name of the browser and the name of the exec to use to launch that browser.

See Also:
TWGMainGUI

Field Summary
static java.lang.String BROWSER_LAUNCHER_PROPERTIES
          Name of the properties files that contains the launch information
static int browserIndexFound
          Index of browser found by going through all possible browsers listed in properties file
static int MAX_BROWSERS
           
static java.lang.String PROP_BROWSER_EXEC
           
static java.lang.String PROP_BROWSER_NAME
           
static java.lang.String PROP_BROWSER_PARMS
           
static java.lang.String PROP_CURRENT_BROWSER
          Name of the constants to match against when parsing properties file.
 
Constructor Summary
BrowserLauncher()
           
 
Method Summary
static void launchURL(java.lang.String ustr)
           
static void launchURL(java.net.URL u)
          Deprecated.  
static void main(java.lang.String[] s)
          Main routine used for debugging this browser launch capability.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BROWSER_LAUNCHER_PROPERTIES

public static final java.lang.String BROWSER_LAUNCHER_PROPERTIES
Name of the properties files that contains the launch information

See Also:
Constant Field Values

browserIndexFound

public static int browserIndexFound
Index of browser found by going through all possible browsers listed in properties file


MAX_BROWSERS

public static final int MAX_BROWSERS
See Also:
Constant Field Values

PROP_CURRENT_BROWSER

public static final java.lang.String PROP_CURRENT_BROWSER
Name of the constants to match against when parsing properties file.

See Also:
Constant Field Values

PROP_BROWSER_NAME

public static final java.lang.String PROP_BROWSER_NAME
See Also:
Constant Field Values

PROP_BROWSER_EXEC

public static final java.lang.String PROP_BROWSER_EXEC
See Also:
Constant Field Values

PROP_BROWSER_PARMS

public static final java.lang.String PROP_BROWSER_PARMS
See Also:
Constant Field Values
Constructor Detail

BrowserLauncher

public BrowserLauncher()
Method Detail

launchURL

public static void launchURL(java.lang.String ustr)
                      throws java.io.IOException
Throws:
java.io.IOException

launchURL

public static void launchURL(java.net.URL u)
                      throws java.io.IOException
Deprecated.  

Launch the browser that is specified as the current browser in the properties file.

Throws:
java.io.IOException

main

public static final void main(java.lang.String[] s)
Main routine used for debugging this browser launch capability.