Allow using webapp from connections

Allow connections to register their own handlers for HTTP URIs inside
the zuul's webapp HTTP server. That way, connections can listen for
events comming through HTTP.

Story: 2000774

Change-Id: Ic5887d00ff302f67469df5154e9df10b99f1cfcd
This commit is contained in:
Jan Hruban
2015-08-21 14:00:54 +02:00
committed by Jesse Keating
parent 2a531699a9
commit 7083edd565
7 changed files with 95 additions and 25 deletions

View File

@@ -58,6 +58,13 @@ class ConnectionRegistry(object):
if load:
connection.onLoad()
def registerWebapp(self, webapp):
for driver_name, driver in self.drivers.items():
if hasattr(driver, 'registerWebapp'):
driver.registerWebapp(webapp)
for connection_name, connection in self.connections.items():
connection.registerWebapp(webapp)
def reconfigureDrivers(self, tenant):
for driver in self.drivers.values():
if hasattr(driver, 'reconfigure'):