@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 BinderbindToRequest in class BindToStringPayloadprotected FirewallRule findRuleInArgsOrNull(GeneratedHttpRequest<?> gRequest)
public <R extends HttpRequest> R bindToRequest(R request, Map<String,String> postParams)
MapBinderbindToRequest in interface MapBinderPayloadParampublic String generateXml(FirewallRule firewallRule)
protected com.jamesmurty.utils.XMLBuilder buildRoot()
throws ParserConfigurationException,
FactoryConfigurationError
Copyright © 2009-2012 jclouds. All Rights Reserved.