org.jclouds.rest.binders
Class BindToJsonPayload
java.lang.Object
org.jclouds.rest.binders.BindToJsonPayload
- All Implemented Interfaces:
- Binder, MapBinder
- Direct Known Subclasses:
- BindBackupScheduleToJsonPayload, RimuHostingJsonBinder
public class BindToJsonPayload
- extends Object
- implements MapBinder
Binds the object to the request as a json object.
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jsonBinder
protected final Json jsonBinder
BindToJsonPayload
@Inject
public BindToJsonPayload(Json jsonBinder)
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-2011 jclouds. All Rights Reserved.