users@jersey.java.net

Re: [Jersey] _at_Context UriInfo hostname

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 15 Apr 2009 10:05:00 +0200

Hi Alan,

Are you using Jersey 1.0.2?

I fixed this in Jersey 1.0.3-SNAPSHOT:

   https://jersey.dev.java.net/issues/show_bug.cgi?id=240

Could you verify if the latest 1.0.3-SNAPSHOT works for you?

Thanks,
Paul.

On Apr 15, 2009, at 12:16 AM, Alan Harder wrote:

> 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
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>