Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1475

There is no option to disable "encodeSlashInPath"

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 3.0.24.Final, 3.1.4.Final
    • 3.0.19.Final
    • None
    • None

    Description

      We are using Resteasy client for Hawkular.org. In the client I'm using proxyBuilder content as follows,

      @Path("/hawkular/inventory")
      public interface InventoryRestApi { 
        @GET
        @Path("/entity/{path:.+}")
        Response getEntity(@Encoded @PathParam("path") String canonicalPath);
      }
      

      I do not want to encode PathParam. I would like the get the url as http://localhost:8080/hawkular/inventory/entity/t;hawkular/f;jk-feed
      but I'm getting as http://localhost:8080/hawkular/inventory/entity/t;hawkular%2Ff;jk-feed

      It looks like by default it is calling, https://github.com/resteasy/Resteasy/blob/4e5acbb3f61263a300f0316d952233a404f9b702/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/internal/proxy/processors/webtarget/PathParamProcessor.java#L23

      But I want to call 'target.resolveTemplate(paramName, param, false);' ie: encodeSlashInPath=false.

      Could you please help me to configure this settings, if we have a way already.

      Thank you!

      Attachments

        Issue Links

          Activity

            People

              rsigal@redhat.com Ronald Sigal
              jkandasa-rh Jeeva Kandasamy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: