Package SPyRO :: Module SPyRO :: Class ProtocolHTTPReader
[hide private]
[frames] | no frames]

Class ProtocolHTTPReader

source code

TransportProtocolMixIn --+
                         |
                        ProtocolHTTPReader

Protocol used by clients, it runs under HTTP transmition layer

Instance Methods [hide private]
 
__init__(self, address, location, compress, usingssl=True)
Initialize a client protocol manager.
source code
 
__del__(self) source code
 
close(self) source code
 
__request(self, msg, contenttype='application/xml')
Send the message |msg|
source code
 
get_result(self)
Read a message and returns.
source code
 
_fixauth(self, msg) source code
 
send_control(self, msg) source code
 
send_setAttr(self, msg)
send a setAttr request
source code
 
send_getAttr(self, msg)
send a getAttr request
source code
 
send_callMethod(self, msg)
send a callMethod request
source code
Method Details [hide private]

__init__(self, address, location, compress, usingssl=True)
(Constructor)

source code 

Initialize a client protocol manager.

Using |address| as a tuple (host,port) and |location| Set the remote object location to perform the remote operations. In |location| the format of the broker is attached concatenating a '?' and a name of the format to the normal location. |compress| Use gzip compression in messages |usingssl| If True, the connection will be done using https

For example, to request a remote server that is listening on /path/SPyRO to use the registered XMLRPC format /path/SPyRO?XMLRPC

get_result(self)

source code 
Read a message and returns. It uses a specific format