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 Json
jsonBinder
-
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:MapBinder
creates and binds the POST payload to the request using parameters specified.- Specified by:
bindToRequest
in interfaceMapBinder
- See Also:
PayloadParam
-
bindToRequest
public <R extends HttpRequest> R bindToRequest(R request, Object payload)
- Specified by:
bindToRequest
in interfaceBinder
-
-