jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds] JCLOUDS-489 - Adds support to Cloud Files for the iOS Streaming URI (#309)
Date Sat, 08 Mar 2014 20:03:52 GMT
> -         // CDN is not, and has never, been enabled for this container.
> -         return null;
> -      } 
> -      else {
> -         return new ContainerCDNMetadata(
> -            request.getEndpoint().getPath(), 
> -            Boolean.parseBoolean(cdnEnabled), 
> -            Boolean.parseBoolean(cdnLogRetention), 
> -            Long.parseLong(cdnTTL), 
> -            URI.create(cdnUri),
> -            URI.create(cdnSslUri),
> -            URI.create(cdnStreamingUri));
> -      }
> +      // just need the name from the path
> +      List<String> parts = newArrayList(Splitter.on('/').split(request.getEndpoint().getPath()));
> +      checkArgument(parts.size() > 0);

[minor] `!parts.isEmpty()`?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/309/files#r10410896
Mime
View raw message