I am implementing a pre matching ContainerRequestFilter
and would like to retrieve the @Path
pattern of my resource which is about to be invoked.
Here is my resource
Path("/v1/partner/{partnerId}/adresse")
public interface AdresseResource
{
@GET
@Produces({ MediaType.APPLICATION_JSON })
public Response handleAdresseCollectionGet(@Context UriInfo uriInfo, @PathParam("partnerId") String partnerId);
// Other methods omitted
}
In my filter I would like to get the /v1/partner/{partnerId}/adresse
pattern from my Path annotation. But I can't get it out of the ContainerRequestContext
instance. I would have expected this information within the UriInfo
but encodedPath
and matchingPath
are the same.
Can you help me on this?