hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject [HttpCore] java.net.URI was Re: [jira] Resolved: (HTTPCORE-36) HttpRequestHandlerRegistry configuration
Date Fri, 02 Feb 2007 09:00:47 GMT
On Fri, 2007-02-02 at 09:51 +0100, Stojce Dimski wrote:
> I mean in the whole HttpCore not in the context of this patch...
> > But looking at the code I am wondering when dealing with uri's why are
> > they defined as simple java.lang.String instead of java.net.URI ? Is
> > there some particular reason ?
> 

Hi Stojce,

The answer is very simple: java.net.URI is available as of Java 1.4,
whereas we would like to keep HttpCore (main module) Java 1.3 compatible

As far as HttpRequestHandlerRegistry goes, URI parsing is a more
expensive operation compared to the #indexOf / #substring combo. I felt
parsing the while damn thing just to strip away the query part was not
justified 

Oleg

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


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


Mime
View raw message