org.jclouds.vcloud.binders
Class BindCaptureVAppParamsToXmlPayload
java.lang.Object
org.jclouds.vcloud.binders.BindCaptureVAppParamsToXmlPayload
- All Implemented Interfaces:
- Binder, MapBinder
@Singleton
public class BindCaptureVAppParamsToXmlPayload
- extends Object
- implements MapBinder
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ns
protected final String ns
schema
protected final String schema
BindCaptureVAppParamsToXmlPayload
@Inject
public BindCaptureVAppParamsToXmlPayload(BindToStringPayload stringBinder,
@Named(value="jclouds.vcloud.xml.ns")
String ns,
@Named(value="jclouds.vcloud.xml.schema")
String schema)
bindToRequest
public <R extends HttpRequest> R bindToRequest(R request,
Map<String,String> postParams)
- Description copied from interface:
MapBinder
- creates and binds the POST payload to the request using parameters specified.
- Specified by:
bindToRequest
in interface MapBinder
- See Also:
PayloadParam
generateXml
protected String generateXml(String templateName,
String vApp,
CaptureVAppOptions options)
throws ParserConfigurationException,
FactoryConfigurationError,
TransformerException
- Throws:
ParserConfigurationException
FactoryConfigurationError
TransformerException
buildRoot
protected com.jamesmurty.utils.XMLBuilder buildRoot(String name)
throws ParserConfigurationException,
FactoryConfigurationError
- Throws:
ParserConfigurationException
FactoryConfigurationError
findOptionsInArgsOrNull
protected CaptureVAppOptions findOptionsInArgsOrNull(GeneratedHttpRequest<?> gRequest)
bindToRequest
public <R extends HttpRequest> R bindToRequest(R request,
Object input)
- Specified by:
bindToRequest
in interface Binder
ifNullDefaultTo
protected String ifNullDefaultTo(String value,
String defaultValue)
Copyright © 2009-2011 jclouds. All Rights Reserved.