>>
>> JAX-RS UriInfo and UriBuilder is what JAX-RS provides. UriInfo will
>> give the base URI builder, ex :
>>
>> UriBuilder builder = uriInfo.getBaseUriBuilder();
>
> How do I get that "uriInfo" instance?  The UriInfo class is an interface.  
> There are static methods in UriBuilder.
>
Have it injected:

public class Controller {
// thread-safe
@Context
private UriInfo uriInfo;
...
}

cheers, Sergey

Reply via email to