public TunnelRequestType getType() throws GuacamoleException {

        TunnelRequestType type = TunnelRequestType.parseType(getRequiredParameter(TYPE_PARAMETER));
        if (type != null)
            return type;

        throw new GuacamoleClientException("Illegal identifier - unknown type.");

    }
Returns the type of object for which the tunnel is being requested.

@return
    The type of object for which the tunnel is being requested.

@throws GuacamoleException
    If the type was not present in the request, or if the type requested
    is in the wrong format.
guacamole/src/main/java/org/apache/guacamole/tunnel/TunnelRequest.java