Modifier and Type | Class and Description |
---|---|
protected static class |
BindInstantiateVAppTemplateParamsToXmlPayload.NetworkConfigDecorator |
Modifier and Type | Field and Description |
---|---|
protected FenceMode |
defaultFenceMode |
protected com.google.common.base.Supplier<ReferenceType> |
defaultNetwork |
protected com.google.common.base.Function<VAppTemplate,String> |
defaultNetworkNameInTemplate |
protected String |
ns |
protected String |
schema |
protected BindToStringPayload |
stringBinder |
protected com.google.common.cache.LoadingCache<URI,VAppTemplate> |
templateCache |
Constructor and Description |
---|
BindInstantiateVAppTemplateParamsToXmlPayload(com.google.common.cache.LoadingCache<URI,VAppTemplate> templateCache,
com.google.common.base.Function<VAppTemplate,String> defaultNetworkNameInTemplate,
BindToStringPayload stringBinder,
String ns,
String schema,
com.google.common.base.Supplier<ReferenceType> network,
FenceMode fenceMode) |
Modifier and Type | Method and Description |
---|---|
protected void |
addNetworkConfig(com.jamesmurty.utils.XMLBuilder instantiationParamsBuilder,
Iterable<NetworkConfig> networkConfig) |
<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(String name) |
protected InstantiateVAppTemplateOptions |
findOptionsInArgsOrNull(GeneratedHttpRequest gRequest) |
protected String |
generateXml(String name,
String description,
boolean deploy,
boolean powerOn,
URI template,
Iterable<NetworkConfig> networkConfig) |
static <T> T |
ifNullDefaultTo(T value,
T defaultValue) |
protected final String ns
protected final String schema
protected final BindToStringPayload stringBinder
protected final com.google.common.base.Supplier<ReferenceType> defaultNetwork
protected final FenceMode defaultFenceMode
protected final com.google.common.cache.LoadingCache<URI,VAppTemplate> templateCache
protected final com.google.common.base.Function<VAppTemplate,String> defaultNetworkNameInTemplate
@Inject public BindInstantiateVAppTemplateParamsToXmlPayload(com.google.common.cache.LoadingCache<URI,VAppTemplate> templateCache, com.google.common.base.Function<VAppTemplate,String> defaultNetworkNameInTemplate, BindToStringPayload stringBinder, @Named(value="jclouds.vcloud.xml.ns") String ns, @Named(value="jclouds.vcloud.xml.schema") String schema, com.google.common.base.Supplier<ReferenceType> network, FenceMode fenceMode)
public <R extends HttpRequest> R bindToRequest(R request, Map<String,Object> postParams)
MapBinder
bindToRequest
in interface MapBinder
PayloadParam
protected String generateXml(String name, @Nullable String description, boolean deploy, boolean powerOn, URI template, Iterable<NetworkConfig> networkConfig) throws ParserConfigurationException, FactoryConfigurationError, TransformerException
protected void addNetworkConfig(com.jamesmurty.utils.XMLBuilder instantiationParamsBuilder, Iterable<NetworkConfig> networkConfig)
protected com.jamesmurty.utils.XMLBuilder buildRoot(String name) throws ParserConfigurationException, FactoryConfigurationError
protected InstantiateVAppTemplateOptions findOptionsInArgsOrNull(GeneratedHttpRequest gRequest)
public <R extends HttpRequest> R bindToRequest(R request, Object input)
bindToRequest
in interface Binder
public static <T> T ifNullDefaultTo(T value, T defaultValue)
Copyright © 2009-2013 jclouds. All Rights Reserved.