Hi

On Wed, Jun 2, 2010 at 12:55 PM, Tamar Furman (tfurman)
<tfur...@cisco.com>wrote:

>
>  Hi -
>
> For internal service logging needs, is there a way to retrieve the full
> REST request url on the service method?
>

You can have a JAXRS UriInfo context injected as a field :
@Context UriInfo ui;

and then do either

ui.getAbsolutePath()
or
ui.getRequestURI() - this one will include the query params

cheers, Sergey

[1] https://jsr311.dev.java.net/releases/1.0/javax/ws/rs/core/UriInfo.html


> Thanks,
> T.
>

Reply via email to