Package org.apache.guacamole.protocol
Class GuacamoleInstruction
java.lang.Object
org.apache.guacamole.protocol.GuacamoleInstruction
An abstract representation of a Guacamole instruction, as defined by the
Guacamole protocol.
-
Constructor Summary
ConstructorsConstructorDescriptionGuacamoleInstruction
(String opcode, String... args) Creates a new GuacamoleInstruction having the given Operation and list of arguments values.GuacamoleInstruction
(String opcode, List<String> args) Creates a new GuacamoleInstruction having the given Operation and list of arguments values. -
Method Summary
-
Constructor Details
-
GuacamoleInstruction
Creates a new GuacamoleInstruction having the given Operation and list of arguments values.- Parameters:
opcode
- The opcode of the instruction to create.args
- The list of argument values to provide in the new instruction if any.
-
GuacamoleInstruction
Creates a new GuacamoleInstruction having the given Operation and list of arguments values. The list given will be used to back the internal list of arguments and the list returned by getArgs().- Parameters:
opcode
- The opcode of the instruction to create.args
- The list of argument values to provide in the new instruction if any.
-
-
Method Details
-
getOpcode
Returns the opcode associated with this GuacamoleInstruction.- Returns:
- The opcode associated with this GuacamoleInstruction.
-
getArgs
Returns a List of all argument values specified for this GuacamoleInstruction. Note that the List returned is immutable. Attempts to modify the list will result in exceptions.- Returns:
- A List of all argument values specified for this GuacamoleInstruction.
-
toString
Returns this GuacamoleInstruction in the form it would be sent over the Guacamole protocol.
-