Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Route requests to protocol specific methods in MobileCoreNetworkInterfaceSbb #50
Currently https://github.com/RestComm/gmlc/blob/master/core/slee/services/sbbs/src/main/java/org/mobicents/gmlc/slee/MobileCoreNetworkInterfaceSbb.java responds to all request URIs and handles protocols based on the request type (GET -> rest, POST -> mlp). Ideally there should a different URI per protocol that's mapped to its own method, ie:
It should be noted that the /restcomm part of the URI is determined by the http-servlet and the code should just work if it's changed.
As we just need to do simple URI -> method routing I'd suggest writing a small class (or even method) to handle it.