org.jclouds.rest.binders
Class BindToJsonPayload

java.lang.Object
  extended by org.jclouds.rest.binders.BindToJsonPayload
All Implemented Interfaces:
Binder, MapBinder
Direct Known Subclasses:
BindAuthToJsonPayload, BindBackupScheduleToJsonPayload, BindCredentialsToJsonPayload, RimuHostingJsonBinder

public class BindToJsonPayload
extends Object
implements MapBinder

Binds the object to the request as a json object.

Author:
Adrian Cole

Field Summary
protected  Json jsonBinder
           
 
Constructor Summary
BindToJsonPayload(Json jsonBinder)
           
 
Method Summary
<R extends HttpRequest>
R
bindToRequest(R request, Map<String,String> 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
 

Field Detail

jsonBinder

protected final Json jsonBinder
Constructor Detail

BindToJsonPayload

@Inject
public BindToJsonPayload(Json jsonBinder)
Method Detail

bindToRequest

public <R extends HttpRequest> R bindToRequest(R request,
                                               Map<String,String> 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

bindToRequest

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


Copyright © 2009-2012 jclouds. All Rights Reserved.