tcalmant / ipopo

iPOPO: a Service-Oriented Component Model for Python
https://ipopo.readthedocs.io/
Apache License 2.0
69 stars 28 forks source link

HTTP Servlet binding acceptance should be tested before the availability of the path #6

Closed tcalmant closed 11 years ago

tcalmant commented 11 years ago

When two servlets services are to be bound on a same path but on two different HTTP services, the bound_to() method is not sufficient to have a clean behaviour: an exception will be raised when the second servlet path will be tested.

The solution could be: 1/ let the servlet register itself in the bound_to() method, if it accepts the server description 2/ let the servlet implement a new method (e.g. accept_server()), called before the servlet path check.

tcalmant commented 11 years ago

Done in commit 44f68020e843d62c8dcbb02673913ade15c00ab8. Servlet might have an "accept_binding(path, parameters)" method: