RE: JAX-RS: UriBuilder encoding

  • From: "Manger, James H" <James.H.Manger@...>
  • To: "users@..." <users@...>
  • Subject: RE: JAX-RS: UriBuilder encoding
  • Date: Thu, 24 Jul 2008 13:39:49 +1000
  • Accept-language: en-US, en-AU
  • Acceptlanguage: en-US, en-AU
  • Mailing-list: contact users-help@...; run by ezmlm



> rename the segments parameter … to make it clear that each value is a path

 

Good idea.

I would scrap the varargs bit for paths, but support varargs for segments.

  path(String… path)  ->  path(String… path)

  replacePath(String… path) -> replacePath(String path)  -or-> root().path(p)

It is a bit simpler (to understand & write correct code) when you don’t have ‘/’s coming from content and varargs simultaneously. I highly doubt it will add any “boilerplate” to code. ub.segment(s1, s2, s3) is available; as is ub.path(p1).path(p2) if necessary.

 

 

replaceMatrixParams should get the same sort of modifications as replaceQueryParams (eg change to matrix(String) and query(String)).

 

James Manger



Re: JAX-RS: UriBuilder encoding

(continued)

Re: JAX-RS: UriBuilder encoding

Stephan Koops 07/24/2008

Re: JAX-RS: UriBuilder encoding

Marc Hadley 07/24/2008

Re: JAX-RS: UriBuilder encoding

Stephan Koops 07/24/2008

Re: JAX-RS: UriBuilder encoding

Marc Hadley 07/24/2008

Re: JAX-RS: UriBuilder encoding

Stephan Koops 07/24/2008

Re: JAX-RS: UriBuilder encoding

Marc Hadley 07/24/2008

RE: JAX-RS: UriBuilder encoding

Manger, James H 07/18/2008

Re: JAX-RS: UriBuilder encoding

Stephan Koops 07/18/2008

RE: JAX-RS: UriBuilder encoding

Manger, James H 07/23/2008

Re: JAX-RS: UriBuilder encoding

Marc Hadley 07/23/2008

RE: JAX-RS: UriBuilder encoding

Manger, James H 07/24/2008

UriBuilder.matrix(String) [was: JAX-RS: UriBuilder encoding]

Stephan Koops 07/24/2008
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150226.965aeb8)
 
 
Close
loading
Please Confirm
Close