Skip to main content

[jsr339-experts] Desired behavior of UriBuilder.fromResource

  • From: Jan Algermissen <jan.algermissen@...>
  • To: "jsr339-experts@..." <jsr339-experts@...>
  • Subject: [jsr339-experts] Desired behavior of UriBuilder.fromResource
  • Date: Thu, 8 Nov 2012 09:59:15 +0100

Before I file a ticket, let me ask here:

Suppose I have:

@Path("customer/{id}")
public class CustomerResource {


When I use UriBuilder.fromResource(CustomerResource.class)

The builder creates a URI, %-encoding the { and } in the path.

This sort feels both, wrong and correct :-)

Question: what is the desired behavior?

And: would it make sense to *NEVER* encode the template variable chars when 
using fromMethod() and fromResource() because when using these two methods, 
the encoding *never* makes any sense?

IOW, there cannot, IMO, be a case ever where the caller *does* want them 
encoded.

Thoughts?

Jan

[jsr339-experts] Desired behavior of UriBuilder.fromResource

Jan Algermissen 11/08/2012

[jsr339-experts] Re: Desired behavior of UriBuilder.fromResource

Markus KARG 11/08/2012

[jsr339-experts] Re: Desired behavior of UriBuilder.fromResource

Jan Algermissen 11/08/2012
 
 
Close
loading
Please Confirm
Close