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:52:29 GMT
> +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"));

ack, makes sense

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

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