org.jclouds.trmk.vcloud_0_8.binders
Class BindVAppConfigurationToXmlPayload
java.lang.Object
org.jclouds.trmk.vcloud_0_8.binders.BindVAppConfigurationToXmlPayload
- All Implemented Interfaces:
- com.google.common.base.Function<Object,URI>, org.jclouds.rest.Binder, org.jclouds.rest.MapBinder
@Singleton
public class BindVAppConfigurationToXmlPayload
- extends Object
- implements org.jclouds.rest.MapBinder, com.google.common.base.Function<Object,URI>
- Author:
- Adrian Cole
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Function |
equals |
ns
protected final String ns
schema
protected final String schema
stringBinder
protected final org.jclouds.rest.binders.BindToStringPayload stringBinder
apiVersion
protected final String apiVersion
BindVAppConfigurationToXmlPayload
@Inject
public BindVAppConfigurationToXmlPayload(@Named(value="jclouds.api-version")
String apiVersion,
org.jclouds.rest.binders.BindToStringPayload stringBinder,
@Named(value="jclouds.vcloud.xml.ns")
String ns,
@Named(value="jclouds.vcloud.xml.schema")
String schema)
bindToRequest
public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
Map<String,String> postParams)
- Specified by:
bindToRequest in interface org.jclouds.rest.MapBinder
generateXml
protected String generateXml(VApp vApp,
VAppConfiguration configuration)
throws ParserConfigurationException,
FactoryConfigurationError,
TransformerException
- Throws:
ParserConfigurationException
FactoryConfigurationError
TransformerException
buildRoot
protected com.jamesmurty.utils.XMLBuilder buildRoot(VApp vApp,
String name)
throws ParserConfigurationException,
FactoryConfigurationError
- Throws:
ParserConfigurationException
FactoryConfigurationError
findVAppInArgsOrNull
protected VApp findVAppInArgsOrNull(org.jclouds.rest.internal.GeneratedHttpRequest<?> gRequest)
findConfigInArgsOrNull
protected VAppConfiguration findConfigInArgsOrNull(org.jclouds.rest.internal.GeneratedHttpRequest<?> gRequest)
bindToRequest
public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
Object input)
- Specified by:
bindToRequest in interface org.jclouds.rest.Binder
ifNullDefaultTo
protected String ifNullDefaultTo(String value,
String defaultValue)
apply
public URI apply(Object from)
- Specified by:
apply in interface com.google.common.base.Function<Object,URI>
Copyright © 2009-2011 jclouds. All Rights Reserved.