RestComm / gmlc

Restcomm Location Server
http://www.restcomm.com/
GNU Affero General Public License v3.0
17 stars 40 forks source link

Route requests to protocol specific methods in MobileCoreNetworkInterfaceSbb #50

Closed Vanit closed 8 years ago

Vanit commented 8 years ago

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.

Vanit commented 8 years ago

Assign to me please :)

FerUy commented 8 years ago

All yours ;)

FerUy commented 8 years ago

@Monix any update from your side on this?

Vanit commented 8 years ago

@FerUy I've been swamped at work for the last week so no progress, but I'm about to free up so should have something either today or tomorrow :)

FerUy commented 8 years ago

Great! Thanks for the quick update @Monix :+1: