Hi James,

I’m away from my computer now, so I cannot say for sure, but I think
UriInfo.getMatchedURIs() might get you the unresolved URI - assuming your
filter is not annotated with @PreMatch.

Can you give that a try? If it doesn’t work I’ll take a closer look on
Monday.

Thanks,

Andy

On Sat, May 4, 2019 at 8:41 AM James Carman <ja...@carmanconsulting.com>
wrote:

> I am trying to use a JAX-RS ContainerRequestFilter to add the full
> path template to the MDC.  I am injecting the UriInfo via a @Context
> injection.  I have tried doing this:
>
> uriInfo.getAbsolutePathBuilder().toTemplate()
>
> But, that appears to already have the parameters resolved.  Is there a
> way to get the full string of the request URI template with the
> parameter names in it?
>

Reply via email to