org.jclouds.savvis.vpdc.binders
Class BindCloneVMToXmlPayload

java.lang.Object
  extended by org.jclouds.rest.binders.BindToStringPayload
      extended by org.jclouds.savvis.vpdc.binders.BindCloneVMToXmlPayload
All Implemented Interfaces:
org.jclouds.rest.Binder, org.jclouds.rest.MapBinder

@Singleton
public class BindCloneVMToXmlPayload
extends org.jclouds.rest.binders.BindToStringPayload
implements org.jclouds.rest.MapBinder

Author:
Kedar Dave

Constructor Summary
BindCloneVMToXmlPayload()
           
 
Method Summary
<R extends org.jclouds.http.HttpRequest>
R
bindToRequest(R request, Map<String,String> postParams)
           
<R extends org.jclouds.http.HttpRequest>
R
bindToRequest(R request, Object toBind)
           
protected  com.jamesmurty.utils.XMLBuilder buildRoot(String newVAppName)
           
protected  URI findVAppURIInArgsOrNull(org.jclouds.rest.internal.GeneratedHttpRequest<?> gRequest)
           
 String generateXml(URI vAppURI, String newVAppName, String networkTierName)
           
protected  String ifNullDefaultTo(String value, String defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindCloneVMToXmlPayload

public BindCloneVMToXmlPayload()
Method Detail

bindToRequest

public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
                                                                Object toBind)
Specified by:
bindToRequest in interface org.jclouds.rest.Binder
Overrides:
bindToRequest in class org.jclouds.rest.binders.BindToStringPayload

findVAppURIInArgsOrNull

protected URI findVAppURIInArgsOrNull(org.jclouds.rest.internal.GeneratedHttpRequest<?> gRequest)

bindToRequest

public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
                                                                Map<String,String> postParams)
Specified by:
bindToRequest in interface org.jclouds.rest.MapBinder

generateXml

public String generateXml(URI vAppURI,
                          String newVAppName,
                          String networkTierName)

buildRoot

protected com.jamesmurty.utils.XMLBuilder buildRoot(String newVAppName)
                                             throws ParserConfigurationException,
                                                    FactoryConfigurationError
Throws:
ParserConfigurationException
FactoryConfigurationError

ifNullDefaultTo

protected String ifNullDefaultTo(String value,
                                 String defaultValue)


Copyright © 2009-2011 jclouds. All Rights Reserved.