> + */
> +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;
> + // transient to avoid serializing by default, for example in json
> + private final transient ImmutableMap<String, Object> delegate;
> +
> + @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 must be 301 or 302 but
> was %s", code);
> + this.code = code;
> + checkNotNull(keepUri, "keepUri");
change to boolean if possible
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/37/files#r5012701