Hi,
I'm new to Jersey and Restful service and I think of an approach to my domain but not sure if it is conceptually correct.I hava a set of classes ready to service the client side requests. Each request is corresponding to a method of these classes. I would like to create a generic module that when a request or a method call is received, it will instantiate a instance of one of these classes according to id from the path and then load the method requested with the params provided as a call the class method and transfer the result from the method back to client. This way I only need to write one module for the whole Restful services.
I can see as least there are some difficulties in handling the respond type which can be so many and one generic approach may not be able to serve all. Do you think there is a way to overcome this? Or in general, what do you recommend?
You comment is highly appreciated!
Brendan