users@jersey.java.net

_at_Context UriInfo hostname

From: Alan Harder <alan.harder_at_sun.com>
Date: Tue, 14 Apr 2009 15:16:44 -0700

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