hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19618] - URI class constructors need revision, optimization
Date Fri, 18 Jul 2003 22:56:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19618>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19618

URI class constructors need revision, optimization





------- Additional Comments From laura@lwerner.org  2003-07-18 22:56 -------
Just to make things more confusing, here's what the JavaDoc for java.net.URI says:

"The single-argument constructor requires any illegal characters in its argument
to be quoted and preserves any escaped octets and other characters that are present.

The multi-argument constructors quote illegal characters as required by the
components in which they appear. The percent character ('%') is always quoted by
these constructors. Any other characters are preserved."

That clears things up, doesn't it?  I suspect the single-argument behavior is
there for compatibility with java.net.URL.

At some point we're going to have to decide how (or whether) HttpClient
interoperates with java.net.URI.  (The APIs are fairly similar.)  Until then,
I'm fine with whatever we do here.

Mime
View raw message