public interface CefCommandLine
| Modifier and Type | Method and Description |
|---|---|
void |
appendArgument(java.lang.String argument)
Add an argument to the end of the command line.
|
void |
appendSwitch(java.lang.String name)
Add a switch with an empty value to the end of the command line.
|
void |
appendSwitchWithValue(java.lang.String name,
java.lang.String value)
Add a switch with the specified value to the end of the command line.
|
java.util.Vector<java.lang.String> |
getArguments()
Get the remaining command line arguments.
|
java.lang.String |
getProgram()
Get the program part of the command line string (the first item).
|
java.util.Map<java.lang.String,java.lang.String> |
getSwitches()
Returns the map of switch names and values.
|
java.lang.String |
getSwitchValue(java.lang.String name)
Returns the value associated with the given switch.
|
boolean |
hasArguments()
Tests if there are remaining command line arguments.
|
boolean |
hasSwitch(java.lang.String name)
Checks if the command line has a specific switches.
|
boolean |
hasSwitches()
Checks if the command line has switches.
|
void |
reset()
Reset the command-line switches and arguments but leave the program
component unchanged.
|
void |
setProgram(java.lang.String program)
Set the program part of the command line string (the first item).
|
void appendArgument(java.lang.String argument)
argument - name of the argument.void appendSwitch(java.lang.String name)
name - name of the switch.void appendSwitchWithValue(java.lang.String name,
java.lang.String value)
name - name of the switch.value - value for the switch.java.util.Vector<java.lang.String> getArguments()
java.lang.String getProgram()
java.util.Map<java.lang.String,java.lang.String> getSwitches()
java.lang.String getSwitchValue(java.lang.String name)
name - the name of the switch.boolean hasArguments()
boolean hasSwitch(java.lang.String name)
name - A switch name to test for.boolean hasSwitches()
void reset()
void setProgram(java.lang.String program)
program - Name of the program.