org.jclouds.rest.binders
Class BindToJsonPayloadWrappedWith

java.lang.Object
  extended by org.jclouds.rest.binders.BindToJsonPayloadWrappedWith
All Implemented Interfaces:
Binder, MapBinder

public class BindToJsonPayloadWrappedWith
extends Object
implements MapBinder

Sometimes, cloud apis wrap requests inside an envelope. This addresses this.

Author:
Adrian Cole

Nested Class Summary
static interface BindToJsonPayloadWrappedWith.Factory
           
 
Method Summary
<R extends HttpRequest>
R
bindToRequest(R request, Map<String,Object> postParams)
          creates and binds the POST payload to the request using parameters specified.
<R extends HttpRequest>
R
bindToRequest(R request, Object payload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bindToRequest

public <R extends HttpRequest> R bindToRequest(R request,
                                               Object payload)
Specified by:
bindToRequest in interface Binder

bindToRequest

public <R extends HttpRequest> R bindToRequest(R request,
                                               Map<String,Object> postParams)
Description copied from interface: MapBinder
creates and binds the POST payload to the request using parameters specified.

Specified by:
bindToRequest in interface MapBinder
See Also:
PayloadParam


Copyright © 2009-2013 jclouds. All Rights Reserved.