I am having trouble getting the correct absolute path / base path from the UriInfo object that is being entered. These values for the very first query are correct, but subsequent queries still show the same value as the very first. This becomes a problem when requests differ in ports (http / https) or in server name (ip / fqdn). I am using IBM websphere v8.0 with apache cxf.
Is this behavior intentional? Or is there some kind of configuration that I can configure to enter it for all requests?
public Response getVal (@Context UriInfo uriInfo) {
uriInfo.getAbsolutePath()
}
source
share