private static class SwingGuiDriver.BrowserHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
defExe
the default browser executable
|
private java.lang.String |
defOptions
the default browser options
|
private static java.lang.String |
OS |
Constructor and Description |
---|
BrowserHelper()
BrowserHelper initializes the default browser and its options.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getCmdLine(java.lang.String commandLine)
Parses the command line and returns the browser executable and its options.
|
private static boolean |
isMac()
Tests if the operation system belongs the Mac os family.
|
private static boolean |
isSolaris()
Tests if the operation system belongs the Solaris os family.
|
private static boolean |
isUnix()
Tests if the operation system belongs the Unix os family.
|
private static boolean |
isWin()
Tests if the operation system belongs the Windows os family.
|
private java.lang.String[] |
parse(java.lang.String commandLine)
Parses the command line to extract an executable and its options.
|
private static java.lang.String OS
private java.lang.String defExe
private java.lang.String defOptions
public BrowserHelper()
private java.lang.String[] parse(java.lang.String commandLine)
commandLine
- public java.lang.String[] getCmdLine(java.lang.String commandLine)
commandLine
- The command line to be parsed.java.lang.UnsupportedOperationException
- if the command line is not provided and the
given operation system isn't supported.private static boolean isWin()
private static boolean isMac()
private static boolean isUnix()
private static boolean isSolaris()