> - URI.create(cdnStreamingUri));
> - }
> + String cdnIosUri =
> checkNotNull(from.getFirstHeaderOrNull(CloudFilesHeaders.CDN_IOS_URI),
> CloudFilesHeaders.CDN_IOS_URI);
> +
> + List<String> parts =
> newArrayList(Splitter.on('/').split(request.getEndpoint().getPath()));
> + checkArgument(!parts.isEmpty(), "incorrect path: " +
> request.getEndpoint().getPath());
> +
> + return new ContainerCDNMetadata(
> + Iterables.getLast(parts),
> + Boolean.parseBoolean(cdnEnabled),
> + Boolean.parseBoolean(cdnLogRetention),
> + Long.parseLong(cdnTTL),
> + URI.create(cdnUri),
> + URI.create(cdnSslUri),
> + URI.create(cdnStreamingUri),
> + URI.create(cdnIosUri));
This handles the case where any of the latter 4 are `null`?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/309/files#r11187165