net.sourceforge.guacamole.protocol
Class GuacamoleInstruction

java.lang.Object
  extended by net.sourceforge.guacamole.protocol.GuacamoleInstruction

public class GuacamoleInstruction
extends Object

An abstract representation of a Guacamole instruction, as defined by the Guacamole protocol.

Author:
Michael Jumper

Nested Class Summary
static class GuacamoleInstruction.Operation
          The operation performed by a particular Guacamole instruction.
 
Constructor Summary
GuacamoleInstruction(GuacamoleInstruction.Operation operation, String... args)
          Creates a new GuacamoleInstruction having the given Operation and list of arguments values.
 
Method Summary
 String[] getArgs()
          Returns an array of all argument values specified for this GuacamoleInstruction.
 GuacamoleInstruction.Operation getOperation()
          Returns the Operation associated with this GuacamoleInstruction.
 String toString()
          Returns this GuacamoleInstruction in the form it would be sent over the Guacamole protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GuacamoleInstruction

public GuacamoleInstruction(GuacamoleInstruction.Operation operation,
                            String... args)
Creates a new GuacamoleInstruction having the given Operation and list of arguments values.

Parameters:
operation - The Operation of the instruction to create.
args - The list of argument values to provide in the new instruction if any.
Method Detail

getOperation

public GuacamoleInstruction.Operation getOperation()
Returns the Operation associated with this GuacamoleInstruction.

Returns:
The Operation associated with this GuacamoleInstruction.

getArgs

public String[] getArgs()
Returns an array of all argument values specified for this GuacamoleInstruction.

Returns:
An array of all argument values specified for this GuacamoleInstruction.

toString

public String toString()
Returns this GuacamoleInstruction in the form it would be sent over the Guacamole protocol.

Overrides:
toString in class Object
Returns:
This GuacamoleInstruction in the form it would be sent over the Guacamole protocol.


Copyright © 2012. All Rights Reserved.