org.jclouds.vcloud.binders
Class BindCaptureVAppParamsToXmlPayload

java.lang.Object
  extended by org.jclouds.vcloud.binders.BindCaptureVAppParamsToXmlPayload
All Implemented Interfaces:
org.jclouds.rest.Binder, org.jclouds.rest.MapBinder

@Singleton
public class BindCaptureVAppParamsToXmlPayload
extends Object
implements org.jclouds.rest.MapBinder


Field Summary
protected  String ns
           
protected  String schema
           
 
Constructor Summary
BindCaptureVAppParamsToXmlPayload(org.jclouds.rest.binders.BindToStringPayload stringBinder, String ns, String schema)
           
 
Method Summary
<R extends org.jclouds.http.HttpRequest>
R
bindToRequest(R request, Map<String,Object> postParams)
           
<R extends org.jclouds.http.HttpRequest>
R
bindToRequest(R request, Object input)
           
protected  com.jamesmurty.utils.XMLBuilder buildRoot(String name)
           
protected  CaptureVAppOptions findOptionsInArgsOrNull(org.jclouds.rest.internal.GeneratedHttpRequest gRequest)
           
protected  String generateXml(String templateName, String vApp, CaptureVAppOptions options)
           
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
 

Field Detail

ns

protected final String ns

schema

protected final String schema
Constructor Detail

BindCaptureVAppParamsToXmlPayload

@Inject
public BindCaptureVAppParamsToXmlPayload(org.jclouds.rest.binders.BindToStringPayload stringBinder,
                                                @Named(value="jclouds.vcloud.xml.ns")
                                                String ns,
                                                @Named(value="jclouds.vcloud.xml.schema")
                                                String schema)
Method Detail

bindToRequest

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

generateXml

protected String generateXml(String templateName,
                             String vApp,
                             CaptureVAppOptions options)
                      throws ParserConfigurationException,
                             FactoryConfigurationError,
                             TransformerException
Throws:
ParserConfigurationException
FactoryConfigurationError
TransformerException

buildRoot

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

findOptionsInArgsOrNull

protected CaptureVAppOptions findOptionsInArgsOrNull(org.jclouds.rest.internal.GeneratedHttpRequest gRequest)

bindToRequest

public <R extends org.jclouds.http.HttpRequest> R bindToRequest(R request,
                                                                Object input)
Specified by:
bindToRequest in interface org.jclouds.rest.Binder

ifNullDefaultTo

protected String ifNullDefaultTo(String value,
                                 String defaultValue)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.