Re: UrlEncodedQueryString (RFE 6306820):a painless addition?

2011-10-30 Thread Richard Kennard
hought it may be worth revisiting RFE 6306820? All the hard work for this >> RFE has already been done. There is a solid implementation, approved by 5 >> out of 6 CCC members, and in real-world use for over 4 years: >> >>http://java.net/projects/urlencodedquerystring >

Re: UrlEncodedQueryString (RFE 6306820):a painless addition?

2011-10-17 Thread Steve Poole
ady been done. There is a solid implementation, approved by 5 > out of 6 CCC members, and in real-world use for over 4 years: > >http://java.net/projects/urlencodedquerystring > > Can I pique anyone's interests in getting this resolved? It seems an easy > win. > Hi - perhaps

UrlEncodedQueryString (RFE 6306820):a painless addition?

2011-10-16 Thread kennardconsulting
for over 4 years: http://java.net/projects/urlencodedquerystring Can I pique anyone's interests in getting this resolved? It seems an easy win. Regards, Richard. -- View this message in context: http://old.nabble.com/UrlEncodedQueryString-%28RFE-6306820%29%3Aa-painless-addition--tp32

Re: Resurrect UrlEncodedQueryString (RFE 6306820)?

2009-03-26 Thread kennardconsulting
Max, Sure, I will make that change. Alan and Michael decided against Serializable, on balance. Regards, Richard. -- View this message in context: http://www.nabble.com/Resurrect-UrlEncodedQueryString-%28RFE-6306820%29--tp22735890p22736814.html Sent from the OpenJDK Networking Development

Re: Resurrect UrlEncodedQueryString (RFE 6306820)?

2009-03-26 Thread Weijun Wang
Hi Richard Sorry, I haven't noticed the words. However, it might be clearer if the first sentence in the doc says "Represents a www-form-urlencoded query string containing an ordered list of parameters". Something else: Is it worthwhile to make the class Serializable? Thanks Max kennardconsul

Re: Resurrect UrlEncodedQueryString (RFE 6306820)?

2009-03-26 Thread kennardconsulting
this message in context: http://www.nabble.com/Resurrect-UrlEncodedQueryString-%28RFE-6306820%29--tp22735890p22736667.html Sent from the OpenJDK Networking Development mailing list archive at Nabble.com.

Re: Resurrect UrlEncodedQueryString (RFE 6306820)?

2009-03-26 Thread kennardconsulting
this message in context: http://www.nabble.com/Resurrect-UrlEncodedQueryString-%28RFE-6306820%29--tp22735890p22736664.html Sent from the OpenJDK Networking Development mailing list archive at Nabble.com.

Re: Resurrect UrlEncodedQueryString (RFE 6306820)?

2009-03-26 Thread kennardconsulting
this message in context: http://www.nabble.com/Resurrect-UrlEncodedQueryString-%28RFE-6306820%29--tp22735890p22736661.html Sent from the OpenJDK Networking Development mailing list archive at Nabble.com.

Re: Resurrect UrlEncodedQueryString (RFE 6306820)?

2009-03-26 Thread kennardconsulting
this message in context: http://www.nabble.com/Resurrect-UrlEncodedQueryString-%28RFE-6306820%29--tp22735890p22736659.html Sent from the OpenJDK Networking Development mailing list archive at Nabble.com.

Re: Resurrect UrlEncodedQueryString (RFE 6306820)?

2009-03-26 Thread Weijun Wang
Is "?a=b&c=d" different from "?c=d&a=d" ? kennardconsulting wrote: > Guys, > > I have been prodded to try and resurrect the work we did on > UrlEncodedQueryString. The story so far is... > > 1. Michael, Alan and I spent 18 months working on i

Re: Resurrect UrlEncodedQueryString (RFE 6306820)?

2009-03-26 Thread Weijun Wang
ied object with this UrlEncodedQueryString for equality. > > Returns true if the given object is also a UrlEncodedQueryString and the two > UrlEncodedQueryStrings have the same parameters. More formally, two > UrlEncodedQueryStrings t1 and t2 represent the same UrlEncodedQueryString i

Re: Resurrect UrlEncodedQueryString (RFE 6306820)?

2009-03-26 Thread kennardconsulting
Yes. From the JavaDoc for .equals(): --- Compares the specified object with this UrlEncodedQueryString for equality. Returns true if the given object is also a UrlEncodedQueryString and the two UrlEncodedQueryStrings have the same parameters. More formally, two UrlEncodedQueryStrings t1 and

Resurrect UrlEncodedQueryString (RFE 6306820)?

2009-03-26 Thread kennardconsulting
Guys, I have been prodded to try and resurrect the work we did on UrlEncodedQueryString. The story so far is... 1. Michael, Alan and I spent 18 months working on it until we were all pretty happy with it 2. Everyone on the CCC except Mark Reinhold signed off on it 3. Mark had reservations on

Re: UrlEncodedQueryString CCC request

2007-11-02 Thread Michael McMahon
added that takes a UrlEncodedQueryString 2) We remove the apply() methods from UrlEncodedQueryString because you build URIs now through UriBuilder. 3) Most methods in UrlEncodedQueryString need to be renamed. The word Parameter needs to be removed from all of them. So, appendParameter

Re: UrlEncodedQueryString CCC request

2007-11-01 Thread Richard Kennard
Marc, > The builder is strictly that, a builder, so I'm not sure if it makes sense to add read capabilities to it Agreed. I actually don't think these two classes (UriBuilder and UrlEncodedQueryString) overlap much. How about I propose this as a direction: 1. JSR-311's U

Re: UrlEncodedQueryString CCC request

2007-11-01 Thread Marc Hadley
e building capabilities of UriBuilder (probably use that name also) with the retrieval/query manipulation capabilities of UrlEncodedQueryString. I think the method names from UrlEncodedQueryString will have to change though eg addParameter() would need to be addQueryParameter()

Re: UrlEncodedQueryString CCC request

2007-11-01 Thread Michael McMahon
he future 2) then we combine the building capabilities of UriBuilder (probably use that name also) with the retrieval/query manipulation capabilities of UrlEncodedQueryString. I think the method names from UrlEncodedQueryString will have to change though eg addParameter() would n

Re: UrlEncodedQueryString CCC request

2007-10-16 Thread Michael McMahon
that it could extend the java.net class in the future 2) then we combine the building capabilities of UriBuilder (probably use that name also) with the retrieval/query manipulation capabilities of UrlEncodedQueryString. I think the method names from UrlEncodedQueryString will have to

Re: UrlEncodedQueryString CCC request

2007-10-12 Thread Richard Kennard
Marc, Thanks for your reply. > The JSR 311 UriBuilder has methods for scheme, host, port and userInfo. We did have authority too but removed it since its a composite of some of the others. Right, sorry - I missed those when I was looking at the JavaDoc. > I think it would make sense for the

Re: UrlEncodedQueryString CCC request

2007-10-12 Thread Marc Hadley
nd a specialized subclass, and a standalone class - and preferred the latter, hence where we are with UrlEncodedQueryString today. What do you think? I think it would make sense for the JSR 311 class to extend a generalized java.net class since we'd want to add support for URI templa

Re: UrlEncodedQueryString CCC request

2007-10-12 Thread Richard Kennard
The java.net team and I tried two ways - a generalized superclass and a specialized subclass, and a standalone class - and preferred the latter, hence where we are with UrlEncodedQueryString today. What do you think? Regards, Richard. Paul. If it is at all specific it is focused on the

Re: UrlEncodedQueryString CCC request

2007-10-12 Thread Paul Sandoz
r isn't concerned with parsing and retrieving and modifying, and UrlEncodedQueryString isn't concerned with UriTemplates. Regards, Richard. Michael McMahon wrote: We have been asked by the CCC to go back and reconsider the design of the proposed UrlEncodedQueryString class/API and to co

Re: UrlEncodedQueryString CCC request

2007-10-12 Thread Paul Sandoz
ilder isn't concerned with parsing and retrieving and modifying, and UrlEncodedQueryString isn't concerned with UriTemplates. Regards, Richard. Michael McMahon wrote: We have been asked by the CCC to go back and reconsider the design of the proposed UrlEncodedQueryString c

Re: UrlEncodedQueryString CCC request

2007-10-11 Thread Richard Kennard
1 may want to use java.net.UrlEncodedQueryString internally, I don't see how the two classes could effectively merge, because UriBuilder isn't concerned with parsing and retrieving and modifying, and UrlEncodedQueryString isn't concerned with UriTemplates. Regards, Richard.

Re: Updated URLEncodedQueryString

2007-08-03 Thread Michael McMahon
Richard Kennard wrote: Chris, Thanks for your feedback. And actually, picky is good! I much prefer picky feedback to no feedback at all. I have updated the JavaDoc with your suggestions: https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?messageID=20922&forumID=1463

Re: Updated URLEncodedQueryString

2007-08-02 Thread Richard Kennard
cky) comments: 1) "Thread Safety Instances of UrlEncodedQueryString are not not synchronized." Typo: "not not". I would expand this a little. Maybe taking wording similar to java.util.HashMap: "Note that this implementation is not synchronized. If m

Re: Updated URLEncodedQueryString

2007-08-02 Thread Christopher Hegarty - Sun Microsystems Ireland
Some initial (picky) comments: 1) "Thread Safety Instances of UrlEncodedQueryString are not not synchronized." Typo: "not not". I would expand this a little. Maybe taking wording similar to java.util.HashMap: "Note that this implementation is not

Updated URLEncodedQueryString

2007-08-01 Thread Richard Kennard
Michael, I have further updated URLEncodedQueryString to incorporate everybody's JavaDoc feedback: https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?messageID=20908&forumID=1463 Hoped to hear from you soon, Richard.

Re: URLEncodedQueryString

2007-07-18 Thread Richard Kennard
Michael, Thanks for everybody's input! I will only reply to those points that need further discussion. I'll post a new version with the other changes people brought up. > We need to support both separator types in the same input strings. Though I thought that > the original separators had to

Re: URLEncodedQueryString

2007-07-16 Thread Michael McMahon
ot;Methods for creating,..." 3) I think that the code samples in the class description should follow the java coding conventions. http://java.sun.com/docs/codeconv/html/CodeConventions.doc7.html#682 For example, the following blank spaces should be removed: URI uri = new URI(

[Fwd: Re: URLEncodedQueryString]

2007-07-16 Thread Michael McMahon
esn't seem right. 3. public static UrlEncodedQueryString create(Map> pMap) "Creates a UrlEncodedQueryString from the given Map. The order the parameters are created in corresponds to the iteration order of the Map." For a multivalued parameter, the order of these values shoul

[Fwd: Re: URLEncodedQueryString]

2007-07-16 Thread Michael McMahon
he class description should follow the java coding conventions. http://java.sun.com/docs/codeconv/html/CodeConventions.doc7.html#682 For example, the following blank spaces should be removed: URI uri = new URI( "http://java.sun.com?forum=2"; ); UrlEncodedQueryString queryS

[Fwd: Re: URLEncodedQueryString]

2007-07-16 Thread Michael McMahon
For example, the following blank spaces should be removed: URI uri = new URI( "http://java.sun.com?forum=2"; ); UrlEncodedQueryString queryString = new UrlEncodedQueryString( uri ); System.out.println( queryString.getParameter( "forum" )); URI uri = new URI(&q

[Fwd: Re: URLEncodedQueryString]

2007-07-16 Thread Michael McMahon
--- Begin Message --- 1. How about setParameters(String name, List values) so that I can set a multivalued parameter in one call? 2. Why undefined result when input string is not a url-encoded query string? Why not throw an Exception? 3. public static UrlEncodedQueryString create (Map