@Singleton public class BindCaptureVAppParamsToXmlPayload extends Object implements MapBinder
Modifier and Type | Field and Description |
---|---|
protected String |
ns |
protected String |
schema |
Constructor and Description |
---|
BindCaptureVAppParamsToXmlPayload(BindToStringPayload stringBinder,
String ns,
String schema) |
Modifier and Type | Method and Description |
---|---|
<R extends HttpRequest> |
bindToRequest(R request,
Map<String,String> 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 CaptureVAppOptions |
findOptionsInArgsOrNull(GeneratedHttpRequest<?> gRequest) |
protected String |
generateXml(String templateName,
String vApp,
CaptureVAppOptions options) |
protected String |
ifNullDefaultTo(String value,
String defaultValue) |
public <R extends HttpRequest> R bindToRequest(R request, Map<String,String> postParams)
MapBinder
bindToRequest
in interface MapBinder
PayloadParam
protected String generateXml(String templateName, String vApp, CaptureVAppOptions options) throws ParserConfigurationException, FactoryConfigurationError, TransformerException
protected com.jamesmurty.utils.XMLBuilder buildRoot(String name) throws ParserConfigurationException, FactoryConfigurationError
protected CaptureVAppOptions findOptionsInArgsOrNull(GeneratedHttpRequest<?> gRequest)
public <R extends HttpRequest> R bindToRequest(R request, Object input)
bindToRequest
in interface Binder
Copyright © 2009-2012 jclouds. All Rights Reserved.