Mercurial > libervia-pubsub
comparison idavoll/tap_http.py @ 183:c21b986cff30
Implement HTTP client to gateway and implement functional tests with it.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Fri, 11 Apr 2008 14:41:16 +0000 |
parents | faf1c9bc2612 |
children | 9038908dc2f5 |
comparison
equal
deleted
inserted
replaced
182:4aa29b1a8c67 | 183:c21b986cff30 |
---|---|
47 config['jid']) | 47 config['jid']) |
48 root.child_delete = gateway.DeleteResource(bs, config['jid'], | 48 root.child_delete = gateway.DeleteResource(bs, config['jid'], |
49 config['jid']) | 49 config['jid']) |
50 root.child_publish = gateway.PublishResource(bs, config['jid'], | 50 root.child_publish = gateway.PublishResource(bs, config['jid'], |
51 config['jid']) | 51 config['jid']) |
52 root.child_list = gateway.ListResource(bs) | |
52 root.child_subscribe = gateway.SubscribeResource(ss) | 53 root.child_subscribe = gateway.SubscribeResource(ss) |
53 root.child_unsubscribe = gateway.UnsubscribeResource(ss) | 54 root.child_unsubscribe = gateway.UnsubscribeResource(ss) |
54 root.child_list = gateway.ListResource(ss) | |
55 | 55 |
56 site = server.Site(root) | 56 site = server.Site(root) |
57 w = internet.TCPServer(int(config['webport']), channel.HTTPFactory(site)) | 57 w = internet.TCPServer(int(config['webport']), channel.HTTPFactory(site)) |
58 w.setServiceParent(s) | 58 w.setServiceParent(s) |
59 | 59 |