When I use @Context UriInfo in the grizzly-servlet-webserver then the
getRequestUri() has the hostname that was used to access the page (so if
I needed a domain name to reach the server, it will show that domain name).
However, when using com.sun.net.HttpServer I get just the plain hostname
in getRequestUri().
Does anyone know how to make HttpServer use the hostname from the
request? Or is there a way to tell HttpServer what to use (so it could
at least use domain name all the time).
Thanks!
- Alan