title: Is it possible to get the absolute request url without path parameters
body: <p>I am trying to get the request url without values of path parameters into it.</p>
  
  <p>Consider my complete url is </p>
  
  <pre><code>URl: http://localhost:8080/aaa/mock/abcd/1234/true
  Path parameters: abcd, true
  Output needed: /aaa/mock/abcd
  </code></pre>
  
  <p>My web service method looks like this.</p>
  
  <pre><code>@Path(value = "/aaa/mock")
  @Component
  public class MockService
  {
      private static Log log = LogFactory.getLog(MockService.class);
  
  
      //address
      @GET
      @Path(value = "/{mockrequest}/{status}")
      @Produces(MediaType.JSON)
      public String mockEngagement(@Context ContainerRequestContext request,@PathParam("mockrequest") String mockrequest,@PathParam("status") String status )
      {
          log.info("The mock url is"+request.getUriInfo().getRequestUri());  
          log.info("The mock url is"+request.getUriInfo().getAbsolutePath()); 
          log.info("The mock url is"+request.getUriInfo().getBaseUri()); 
          log.info("The mock url is"+request.getUriInfo().getMatchedURIs()); 
          **//Out put needed /aaa/mock/abcd**
          return "ajaja";
      }
  
  
  }
  </code></pre>
  
  <p>None of the above calls return the required info.</p>
  
  <p>I am thinking if there is a generic process to get the desired output irrespective of number of path parameters.</p>
  
  <p>Any such methods.</p>