code: public List<ChannelInfo> getChannels(String connectionName) {
      final URI uri = uriWithPath("./connections/" + encodePathSegment(connectionName) + "/channels/");
      return Arrays.asList(this.rt.getForObject(uri, ChannelInfo[].class));
    }
docs: Retrieves state and metrics information for all channels on individual connection.
  @param connectionName the connection name to retrieve channels
  @return list of channels on the connection