public Type getType ( ) throws GuacamoleException { String type = getRequiredParameter ( TYPE_PARAMETER ) ; // For each possible object type for ( Type possibleType : Type . values ( ) ) { // Match against defined parameter value if ( type . equals ( possibleType . PARAMETER_VALUE ) ) return possibleType ; } throw new GuacamoleClientException ( "Illegal identifier - unknown type." ) ; }
Returns the type of object for which the tunnel is being requested .