|
From: Sushil K. V. <sus...@ya...> - 2013-07-15 11:34:32
|
Hello: I am trying to implement proper HATEOS using Resteasy as my framework of choice. However, I am encountering situations where I am manually having to hard-code links instead of calculating them from the JAX-RS classes themselves. As an example, let us say I have a root resource /a which has a sub-resource /b which in turn has a sub-resource /c. So the full path to C is /a/b/c. Now from another resource D, I want to create a link to C as part of my response representation but I am not able to find the full link to C without hard-coding the same. How do I implement this? |