org.jclouds.vcloud.binders
Class BindParamsToXmlPayload

java.lang.Object
  extended by org.jclouds.vcloud.binders.BindParamsToXmlPayload
All Implemented Interfaces:
Binder, MapBinder
Direct Known Subclasses:
BindDeployVAppParamsToXmlPayload, BindUndeployVAppParamsToXmlPayload

@Singleton
public class BindParamsToXmlPayload
extends Object
implements MapBinder

Author:
Adrian Cole

Field Summary
protected  String element
           
protected  String ns
           
protected  BindToStringPayload stringBinder
           
 
Constructor Summary
BindParamsToXmlPayload(String element, BindToStringPayload stringBinder, String ns)
           
 
Method Summary
<R extends HttpRequest>
R
bindToRequest(R request, Map<String,String> postParams)
          creates and binds the POST payload to the request using parameters specified.
<R extends HttpRequest>
R
bindToRequest(R request, Object input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ns

protected final String ns

stringBinder

protected final BindToStringPayload stringBinder

element

protected final String element
Constructor Detail

BindParamsToXmlPayload

@Inject
public BindParamsToXmlPayload(String element,
                                     BindToStringPayload stringBinder,
                                     @Named(value="jclouds.vcloud.xml.ns")
                                     String ns)
Method Detail

bindToRequest

public <R extends HttpRequest> R bindToRequest(R request,
                                               Map<String,String> postParams)
Description copied from interface: MapBinder
creates and binds the POST payload to the request using parameters specified.

Specified by:
bindToRequest in interface MapBinder
See Also:
PayloadParam

bindToRequest

public <R extends HttpRequest> R bindToRequest(R request,
                                               Object input)
Specified by:
bindToRequest in interface Binder


Copyright © 2009-2011 jclouds. All Rights Reserved.