jclouds-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunny Gleason <notificati...@github.com>
Subject Re: [jclouds] Jclouds 136 -- Implementation of DynECT HTTP Redirect service API (#37)
Date Sat, 29 Jun 2013 16:53:55 GMT
> +import com.google.common.collect.ImmutableMap;
> +
> +/**
> + * Encapsulates data related to DynECT HTTP redirect service.
> + */
> +public class HttpRedirect extends ForwardingMap<String, Object> {
> +   private final String url;
> +   private final int code;
> +   private final String keepUri;
> +   private final String fqdn;
> +   private final String zone;
> +
> +   @ConstructorProperties({ "url", "code", "keep_uri", "fqdn", "zone" })
> +   private HttpRedirect(String url, int code, String keepUri, String fqdn, String zone)
{
> +      this.url = checkNotNull(url, "url");
> +      checkArgument(code == 301 || code == 302, "code of %s must be 301 or 302", code);

inspired! will do

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

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message