Package org.jclouds.rest.binders
Class BindToJsonPayload
- java.lang.Object
-
- org.jclouds.rest.binders.BindToJsonPayload
-
- Direct Known Subclasses:
BindAuthToJsonPayload,BindAuthToJsonPayload,BindConsoleToJsonPayload,BindCreateClientOptionsToJsonPayload,BindCredentialsToJsonPayload,BindGroupToUpdateRequestJsonPayload,BindKeyPairToJsonPayload,BindMetadataToJsonPayload,BindSecurityGroupRuleToJsonPayload,ForwardingRuleCreationBinder,HttpHealthCheckCreationBinder
public class BindToJsonPayload extends Object implements MapBinder
Binds the object to the request as a json object.
-
-
Field Summary
Fields Modifier and Type Field Description protected JsonjsonBinder
-
Constructor Summary
Constructors Constructor Description BindToJsonPayload(Json jsonBinder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R extends HttpRequest>
RbindToRequest(R request, Object payload)<R extends HttpRequest>
RbindToRequest(R request, Map<String,Object> postParams)creates and binds the POST payload to the request using parameters specified.
-
-
-
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,Object> postParams)
Description copied from interface:MapBindercreates and binds the POST payload to the request using parameters specified.- Specified by:
bindToRequestin interfaceMapBinder- See Also:
PayloadParam
-
bindToRequest
public <R extends HttpRequest> R bindToRequest(R request, Object payload)
- Specified by:
bindToRequestin interfaceBinder
-
-