Details
Description
The call to UriInfo.getHost() is caching the first request's host and always returning that on all subsequent calls.
For example, Tomcat starts up and a request is made to the server using a URL of "http://1.2.3.4/apicall", getHost() returns "1.2.3.4", the next request is made using a URL of "http://mydomainname.com/apicall", getHost() still returns "1.2.3.4", where "mydomainname.com" is expected.