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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to