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.
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.