public class BindToJsonPayload extends Object implements MapBinder
Modifier and Type | Field and Description |
---|---|
protected Json |
jsonBinder |
Constructor and Description |
---|
BindToJsonPayload(Json jsonBinder) |
Modifier and Type | Method and Description |
---|---|
<R extends HttpRequest> |
bindToRequest(R request,
Map<String,Object> postParams)
creates and binds the POST payload to the request using parameters specified.
|
<R extends HttpRequest> |
bindToRequest(R request,
Object payload) |
protected final Json jsonBinder
@Inject public BindToJsonPayload(Json jsonBinder)
public <R extends HttpRequest> R bindToRequest(R request, Map<String,Object> postParams)
MapBinder
bindToRequest
in interface MapBinder
PayloadParam
public <R extends HttpRequest> R bindToRequest(R request, Object payload)
bindToRequest
in interface Binder
Copyright © 2009-2013 jclouds. All Rights Reserved.