@Singleton public class BindFirewallRuleToXmlPayload extends BindToStringPayload implements MapBinder
Constructor and Description |
---|
BindFirewallRuleToXmlPayload() |
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 toBind) |
protected com.jamesmurty.utils.XMLBuilder |
buildRoot() |
protected FirewallRule |
findRuleInArgsOrNull(GeneratedHttpRequest<?> gRequest) |
String |
generateXml(FirewallRule firewallRule) |
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 FirewallRule findRuleInArgsOrNull(GeneratedHttpRequest<?> gRequest)
public <R extends HttpRequest> R bindToRequest(R request, Map<String,String> postParams)
MapBinder
bindToRequest
in interface MapBinder
PayloadParam
public String generateXml(FirewallRule firewallRule)
protected com.jamesmurty.utils.XMLBuilder buildRoot() throws ParserConfigurationException, FactoryConfigurationError
Copyright © 2009-2012 jclouds. All Rights Reserved.