|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opera.core.systems.runner.OperaRunnerSettings
public class OperaRunnerSettings
Defines a settings object which impacts OperaRunner, the interface for controlling the Opera binary.
| Field Summary | |
|---|---|
protected OperaArguments |
arguments
|
protected Integer |
display
|
protected String |
host
|
protected Level |
loggingLevel
|
protected boolean |
noQuit
|
protected File |
operaBinary
|
protected Integer |
port
|
protected OperaProduct |
product
|
protected OperaProfile |
profile
|
| Constructor Summary | |
|---|---|
OperaRunnerSettings()
|
|
| Method Summary | |
|---|---|
OperaArguments |
getArguments()
Gets the arguments passed on to Opera. |
File |
getBinary()
Returns the full path to the browser binary. |
static OperaRunnerSettings |
getDefaultSettings()
|
Integer |
getDisplay()
Gets the X display. |
String |
getHost()
The host Opera should connect to. |
Level |
getLoggingLevel()
Returns the logging level of the started Opera process and the process handling mechanism. |
boolean |
getNoQuit()
Returns the whether Opera should quit when OperaRunner is shut down. |
Integer |
getPort()
Returns the port Opera should connect to. |
OperaProduct |
getProduct()
Returns the product currently used, for example desktop or core. |
OperaProfile |
getProfile()
Returns an OperaProfile object containing all settings related to the Opera profile to
be used. |
void |
setArguments(OperaArguments arguments)
Specifies what arguments to pass on to Opera. |
void |
setBinary(File binary)
|
void |
setBinary(String path)
Sets Opera's location. |
void |
setDisplay(Integer display)
Sets the X display to use. |
void |
setHost(String host)
The host Opera should connect to. |
void |
setLoggingLevel(Level level)
Specifies the logging level of the started Opera process and the process handling mechanism. |
void |
setNoQuit(boolean noQuit)
Specifies whether Opera should keep running after OperaRunner is shut down. |
void |
setPort(Integer port)
Specifies the port Opera should connect to. |
void |
setProduct(OperaProduct product)
Sets the product currently used, for example desktop or core. |
void |
setProfile(OperaProfile profile)
Sets the profile to use as an Opera profile represented as an object. |
void |
setProfile(String profileDirectory)
Sets the directory to use for the Opera profile. |
boolean |
supportsDebugProxy()
Whether or not the currently specified Opera configuration supports the -debugproxy command-line argument. |
boolean |
supportsPd()
Whether or not the currently specified Opera configuration supports the -pd
command-line argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File operaBinary
protected Integer display
protected OperaProduct product
protected OperaProfile profile
protected boolean noQuit
protected String host
protected Integer port
protected Level loggingLevel
protected OperaArguments arguments
| Constructor Detail |
|---|
public OperaRunnerSettings()
| Method Detail |
|---|
public File getBinary()
OperaRunnerSettings
getBinary in interface OperaRunnerSettingspublic void setBinary(String path)
OperaRunnerSettings
setBinary in interface OperaRunnerSettingspath - the absolute path to the Opera binarypublic void setBinary(File binary)
public Integer getDisplay()
OperaRunnerSettings
getDisplay in interface OperaRunnerSettings
public void setDisplay(Integer display)
throws UnsupportedOperationException
OperaRunnerSettings
setDisplay in interface OperaRunnerSettingsdisplay - the X display to use
UnsupportedOperationException - if on a non-nix operating systempublic OperaProduct getProduct()
OperaRunnerSettings
getProduct in interface OperaRunnerSettingspublic void setProduct(OperaProduct product)
OperaRunnerSettings
setProduct in interface OperaRunnerSettingsproduct - the profile configuration to usepublic OperaProfile getProfile()
OperaRunnerSettingsOperaProfile object containing all settings related to the Opera profile to
be used. This might be anything from the path to the profile directory, to preferences used
in Opera.
getProfile in interface OperaRunnerSettingspublic void setProfile(String profileDirectory)
OperaRunnerSettings
setProfile in interface OperaRunnerSettingsprofileDirectory - the absolute path to the profile directorypublic void setProfile(OperaProfile profile)
OperaRunnerSettings
setProfile in interface OperaRunnerSettingsprofile - the Opera profile to usepublic boolean getNoQuit()
OperaRunnerSettings
getNoQuit in interface OperaRunnerSettingspublic void setNoQuit(boolean noQuit)
OperaRunnerSettings
setNoQuit in interface OperaRunnerSettingsnoQuit - true if browser should keep running, false otherwisepublic String getHost()
OperaRunnerSettings
getHost in interface OperaRunnerSettingspublic void setHost(String host)
OperaRunnerSettings
setHost in interface OperaRunnerSettingshost - the host Opera should connect topublic Integer getPort()
OperaRunnerSettings
getPort in interface OperaRunnerSettingspublic void setPort(Integer port)
OperaRunnerSettings
setPort in interface OperaRunnerSettingsport - the port Opera should connect topublic boolean supportsDebugProxy()
OperaRunnerSettings-debugproxy command-line argument. If the specified port is not equal to
the default proxy server port specified in OperaIntervals.SERVER_PORT,
this will be true.
supportsDebugProxy in interface OperaRunnerSettings-debugproxy command-line argument,
false otherwisepublic boolean supportsPd()
OperaRunnerSettings-pd
command-line argument.
supportsPd in interface OperaRunnerSettings-pd command-line argument.public OperaArguments getArguments()
OperaRunnerSettings
getArguments in interface OperaRunnerSettingspublic void setArguments(OperaArguments arguments)
OperaRunnerSettings
setArguments in interface OperaRunnerSettingsarguments - which arguments to pass on to Operapublic Level getLoggingLevel()
OperaRunnerSettings
getLoggingLevel in interface OperaRunnerSettingspublic void setLoggingLevel(Level level)
OperaRunnerSettings
setLoggingLevel in interface OperaRunnerSettingslevel - the logging level to usepublic static OperaRunnerSettings getDefaultSettings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||