> +      switch (type) {
> +         case NOVNC:
> +         case XVPVNC:
> +            action = "os-getVNCConsole";
> +            break;
> +         case SPICE_HTML5:
> +            action = "os-getSPICEConsole";
> +            break;
> +         case RDP_HTML5:
> +            action = "os-getRDPConsole";
> +            break;
> +         default:
> +            throw new IllegalArgumentException("Invalid type: " + type);
> +      }
> +
> +      return bindToRequest(request, (Object) ImmutableMap.of(action, 
> ImmutableSortedMap.copyOf(postParams)));

Through a second look, the casting here seems unnecessary. I'll remove this.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/339/files#r13038421

Reply via email to