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

Class ProtocolHTTPReader

TransportProtocolMixIn --+
                         |
                        ProtocolHTTPReader


Protocol used by clients, it runs under HTTP transmition layer
Method Summary
  __init__(self, address, location, compress, usingssl)
Initialize a client protocol manager.
  __del__(self)
  close(self)
  get_result(self, commclient)
Read a message and returns.
  send_callMethod(self, msg, commclient)
send a callMethod request
  send_control(self, msg, commclient)
  send_getAttr(self, msg, commclient)
send a getAttr request
  send_setAttr(self, msg, commclient)
send a setAttr request
  __request(self, msg, contenttype)
Send the message |msg|
    Inherited from TransportProtocolMixIn
  _choose_format(self, format, request)
  _load_request(self, x)
  _load_result(self, x)

Method Details

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

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 XML format /path/SPyRO?XML

get_result(self, commclient)

Read a message and returns. It uses a specific format

send_callMethod(self, msg, commclient)

send a callMethod request

send_getAttr(self, msg, commclient)

send a getAttr request

send_setAttr(self, msg, commclient)

send a setAttr request

__request(self, msg, contenttype='application/xml')

Send the message |msg|

Generated by Epydoc 2.1 on Sat Oct 14 11:50:52 2006 http://epydoc.sf.net