Am using Jersey for REST application,
In my case most of the rest calls in server1 are just act as like proxy. for ex,
/rest/codes
/rest/suppliers
/rest/items
All the above calls are directly connected to server2 and sends back the responses.
A particular calls ie./rest/txn/update are processed in server1 before sending it to server2
So am looking for a common method which receives multiple paths for the above case.
@Path("rest")
public class UIALoginREST {
@Path("codes | suppliers | items")
public String connectServerr2(){
//method content
}
}
Please suggest an idea to do it.