Invoking a REST service from an Eclipse AttributePart
I have a custom REST service running in the JazzTeamServer, and would like to invoke it from a custom AttributePart that I've written in Java, and which runs in the RTC Eclipse UI. Is there a recommended way to do this?
If it's as simple as using simple Java URL and URLConnection to invoke the service, is there a way to get the context root (the base URL) for the Jazz Team Server from within an AttributePart, so I don't have to hard-code it into the URL address?
Alternately, if Jazz provides any helper classes for accessing JTS REST services (like a RemoteServiceInvoker) that can be used from within a AttributePart within an RTC Eclipse plugin, can you point me to sample code?
Thanks!
If it's as simple as using simple Java URL and URLConnection to invoke the service, is there a way to get the context root (the base URL) for the Jazz Team Server from within an AttributePart, so I don't have to hard-code it into the URL address?
Alternately, if Jazz provides any helper classes for accessing JTS REST services (like a RemoteServiceInvoker) that can be used from within a AttributePart within an RTC Eclipse plugin, can you point me to sample code?
Thanks!