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-labs-openstack] JCLOUDS-494: Change EndpointParam parser to negotiate version for Glance API (#82)
Date Tue, 18 Mar 2014 20:51:58 GMT
> +import com.google.common.base.Supplier;
> +import com.google.common.base.Throwables;
> +import com.google.common.cache.CacheBuilder;
> +import com.google.common.cache.CacheLoader;
> +import com.google.common.cache.LoadingCache;
> +
> +/**
> + * 
> + * @author Jasdeep Hundal
> + */
> +@Singleton
> +public class ZoneToEndpointNegotiateVersion implements Function<Object, URI> {
> +
> +   public static final String VERSION_NEGOTIATION_HEADER = "Is-Version-Negotiation-Request";
> +
> +   private static class VersionsJsonResponse{

@nacx: do you have an example handy? ;-) But whether we need this or not will largely depend
on the answer to the "use of HttpClient" question, I guess...

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