> +import org.jclouds.rest.Binder;
> +
> +import com.google.common.collect.ImmutableMap;
> +
> +public class HttpRedirectBinder implements Binder {
> + private final Json json;
> +
> + @Inject
> + HttpRedirectBinder(Json json){
> + this.json = checkNotNull(json, "json");
> + }
> +
> + @SuppressWarnings("unchecked")
> + @Override
> + public <R extends HttpRequest> R bindToRequest(R request, Object arg) {
> + HttpRedirect in = HttpRedirect.class.cast(checkNotNull(arg, "redirect
> to create"));
See comment above
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/37/files#r4772790