hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: [HttpCore] java.net.URI was Re: [jira] Resolved: (HTTPCORE-36) HttpRequestHandlerRegistry configuration
Date Fri, 02 Feb 2007 15:52:11 GMT
On Fri, 2007-02-02 at 16:45 +0100, Roland Weber wrote:
> Hi Oleg,
> 
> > 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 
> 
> I wonder whether URI parsing should be in HttpCore at all, in particular
> in an API package. I guess you needed that class for the various server
> examples, but I feel that you are pushing the limits of HttpCore when
> you're doing URL-based request dispatching.

Hi Roland,

I know and fully agree. But I could not find another approach which
would make HttpService usable without subclassing

>  At the very least we should
> have an interface so that the implementation can be replaced.
> 

We already do:

HttpRequestHandlerResolver

I hope this addresses your concerns

Oleg


> cheers,
>   Roland
> 
> 
> 
> ---------------------------------------------------------------------
> 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