public abstract class BaseBindVMSpecToXmlPayload<T> extends BindToStringPayload implements MapBinder
Constructor and Description |
---|
BaseBindVMSpecToXmlPayload() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOperatingSystemAndVirtualHardware(VMSpec spec,
com.jamesmurty.utils.XMLBuilder vAppBuilder) |
protected abstract void |
bindSpec(T spec,
com.jamesmurty.utils.XMLBuilder rootBuilder) |
<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 toBind) |
protected com.jamesmurty.utils.XMLBuilder |
buildChildren(com.jamesmurty.utils.XMLBuilder rootBuilder) |
protected com.jamesmurty.utils.XMLBuilder |
buildRoot() |
protected com.jamesmurty.utils.XMLBuilder |
buildRootForName(com.jamesmurty.utils.XMLBuilder rootBuilder,
String name) |
protected void |
checkSpec(VMSpec spec) |
protected abstract T |
findSpecInArgsOrNull(GeneratedHttpRequest gRequest) |
String |
generateXml(T spec) |
protected String |
ifNullDefaultTo(String value,
String defaultValue) |
public <R extends HttpRequest> R bindToRequest(R request, Object toBind)
bindToRequest
in interface Binder
bindToRequest
in class BindToStringPayload
protected abstract T findSpecInArgsOrNull(GeneratedHttpRequest gRequest)
public <R extends HttpRequest> R bindToRequest(R request, Map<String,Object> postParams)
MapBinder
bindToRequest
in interface MapBinder
PayloadParam
protected abstract void bindSpec(T spec, com.jamesmurty.utils.XMLBuilder rootBuilder) throws ParserConfigurationException, FactoryConfigurationError
protected void checkSpec(VMSpec spec)
protected void addOperatingSystemAndVirtualHardware(VMSpec spec, com.jamesmurty.utils.XMLBuilder vAppBuilder)
protected com.jamesmurty.utils.XMLBuilder buildRoot() throws ParserConfigurationException, FactoryConfigurationError
protected com.jamesmurty.utils.XMLBuilder buildChildren(com.jamesmurty.utils.XMLBuilder rootBuilder) throws ParserConfigurationException, FactoryConfigurationError
protected com.jamesmurty.utils.XMLBuilder buildRootForName(com.jamesmurty.utils.XMLBuilder rootBuilder, String name) throws ParserConfigurationException, FactoryConfigurationError
Copyright © 2009-2013 jclouds. All Rights Reserved.