Modifier and Type | Field and Description |
---|---|
protected String |
apiVersion |
protected String |
ns |
protected String |
schema |
protected BindToStringPayload |
stringBinder |
Constructor and Description |
---|
BindVAppConfigurationToXmlPayload(String apiVersion,
BindToStringPayload stringBinder,
String ns,
String schema) |
Modifier and Type | Method and Description |
---|---|
URI |
apply(Object from) |
<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 com.jamesmurty.utils.XMLBuilder |
buildRoot(VApp vApp,
String name) |
protected VAppConfiguration |
findConfigInArgsOrNull(GeneratedHttpRequest gRequest) |
protected VApp |
findVAppInArgsOrNull(GeneratedHttpRequest gRequest) |
protected String |
generateXml(VApp vApp,
VAppConfiguration configuration) |
protected String |
ifNullDefaultTo(String value,
String defaultValue) |
protected final String ns
protected final String schema
protected final BindToStringPayload stringBinder
protected final String apiVersion
@Inject public BindVAppConfigurationToXmlPayload(String apiVersion, BindToStringPayload stringBinder, @Named(value="jclouds.vcloud.xml.ns") String ns, @Named(value="jclouds.vcloud.xml.schema") String schema)
public <R extends HttpRequest> R bindToRequest(R request, Map<String,Object> postParams)
MapBinder
bindToRequest
in interface MapBinder
PayloadParam
protected String generateXml(VApp vApp, VAppConfiguration configuration) throws ParserConfigurationException, FactoryConfigurationError, TransformerException
protected com.jamesmurty.utils.XMLBuilder buildRoot(VApp vApp, String name) throws ParserConfigurationException, FactoryConfigurationError
protected VApp findVAppInArgsOrNull(GeneratedHttpRequest gRequest)
protected VAppConfiguration findConfigInArgsOrNull(GeneratedHttpRequest gRequest)
public <R extends HttpRequest> R bindToRequest(R request, Object input)
bindToRequest
in interface Binder
Copyright © 2009-2013 jclouds. All Rights Reserved.