hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Speirs <bill.spe...@gmail.com>
Subject RequestLine's getUri() Return Type
Date Thu, 16 Jun 2011 13:50:34 GMT
Why does RequestLine's getUri() return a String instead of a URI
(http://download.oracle.com/javase/6/docs/api/java/net/URI.html)
object? I find that most of the time when I'm calling getUri() I just
turn around and create a URI Object so I can parse out the pieces I
need: schema, port, etc.

I also noticed that BasicRequestLine, for example, doesn't perform any
validation on the URI. If RequestLine was changed to return a URI
object, it would necessitate the validating (through creating the URI
object) of the URI.

Thoughts?

Bill-

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message