Part of libcloud.common.xmlrpc View Source View In Hierarchy
Known subclasses: libcloud.common.gandi.GandiConnection, libcloud.compute.drivers.softlayer.SoftLayerConnection, libcloud.compute.drivers.vcl.VCLConnection
Connection class which can call XMLRPC based API's. This class uses the xmlrpclib marshalling and demarshalling code but uses the http transports provided by libcloud giving it better certificate validation and debugging helpers than the core client library.
Method | add_default_headers | Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers` |
Method | request | Call a given `method_name`. |
Inherited from Connection:
Method | __init__ | Undocumented |
Method | set_context | Undocumented |
Method | connect | Establish a connection with the API server. |
Method | user_agent_append | Append a token to a user agent string. |
Method | morph_action_hook | Undocumented |
Method | add_default_params | Adds default parameters (such as API key, version, etc.) to the passed `params` |
Method | pre_connect_hook | A hook which is called before connecting to the remote server. This hook can perform a final manipulation on the params, headers and url parameters. |
Method | encode_data | Encode body data. |
Method | _tuple_from_url | Undocumented |
Method | _user_agent | Undocumented |
Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers` Should return a dictionary.
Call a given `method_name`. @type method_name: C{str} @param method_name: A method exposed by the xmlrpc endpoint that you are connecting to. @type args: C{tuple} @param args: Arguments to invoke with method with.