@Singleton public class BindParamsToXmlPayload extends Object implements MapBinder
Modifier and Type | Field and Description |
---|---|
protected String |
element |
protected String |
ns |
protected BindToStringPayload |
stringBinder |
Constructor and Description |
---|
BindParamsToXmlPayload(String element,
BindToStringPayload stringBinder,
String ns) |
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 input) |
protected final String ns
protected final BindToStringPayload stringBinder
protected final String element
@Inject public BindParamsToXmlPayload(String element, BindToStringPayload stringBinder, @Named(value="jclouds.vcloud.xml.ns") String ns)
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 input)
bindToRequest
in interface Binder
Copyright © 2009-2013 jclouds. All Rights Reserved.