users@jersey.java.net

Re: [Jersey] _at_Context UriInfo hostname

From: Alan Harder <alan.harder_at_sun.com>
Date: Wed, 15 Apr 2009 09:21:03 -0700

Actually I added it from NetBeans so I think it was just 1.0.
It does work with 1.0.3-SNAPSHOT, thanks!

    - Alan


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