@Singleton public abstract class BindCloneParamsToXmlPayload<O extends CloneOptions> extends Object implements MapBinder
Modifier and Type | Field and Description |
---|---|
protected String |
ns |
protected String |
schema |
Constructor and Description |
---|
BindCloneParamsToXmlPayload(BindToStringPayload stringBinder,
String ns,
String schema) |
Modifier and Type | Method and Description |
---|---|
protected void |
addElementsUnderRoot(com.jamesmurty.utils.XMLBuilder rootBuilder,
String source,
O options,
boolean isSourceDelete) |
<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,
O options) |
protected O |
findOptionsInArgsOrNew(GeneratedHttpRequest<?> gRequest) |
protected String |
generateXml(String name,
String source,
boolean isSourceDelete,
O options) |
protected abstract Class<O> |
getOptionClass() |
protected abstract String |
getRootElement() |
protected abstract String |
getSourceMediaType() |
protected String |
ifNullDefaultTo(String value,
String defaultValue) |
protected abstract String getRootElement()
protected abstract String getSourceMediaType()
public <R extends HttpRequest> R bindToRequest(R request, Map<String,String> postParams)
MapBinder
bindToRequest
in interface MapBinder
PayloadParam
protected String generateXml(String name, String source, boolean isSourceDelete, O options)
protected void addElementsUnderRoot(com.jamesmurty.utils.XMLBuilder rootBuilder, String source, O options, boolean isSourceDelete)
protected O findOptionsInArgsOrNew(GeneratedHttpRequest<?> gRequest)
public <R extends HttpRequest> R bindToRequest(R request, Object input)
bindToRequest
in interface Binder
Copyright © 2009-2012 jclouds. All Rights Reserved.