hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCORE-308) Make HttpRequestHandlerResolver and HttpAsyncRequestHandlerResolver more generic
Date Wed, 08 Aug 2012 20:24:20 GMT

    [ https://issues.apache.org/jira/browse/HTTPCORE-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431350#comment-13431350
] 

Oleg Kalnichevski commented on HTTPCORE-308:
--------------------------------------------

Bill,

I think there is no need to deprecate the entire HttpService class. It should be sufficient
to deprecate the old constructor that takes HttpRequestHandlerResolver as a parameter and
provide a new one that takes HttpRequestHandlerMapper. The deprecated constructor can use
an adaptor class to translate HttpRequestHandlerMapper API calls to HttpRequestHandlerResolver
API.

Oleg 
                
> Make HttpRequestHandlerResolver and HttpAsyncRequestHandlerResolver more generic
> --------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-308
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-308
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore, HttpCore NIO
>    Affects Versions: 4.2.1
>            Reporter: William R. Speirs
>         Attachments: HTTPCORE-308.diff
>
>
> Currently both HttpRequestHandlerResolver and HttpAsyncRequestHandlerResolver have a
single method lookup which takes a URI to resolve into a HttpRequestHandler/HttpAsyncRequestHandler.
These two interfaces could be made more generic by accepting an HttpRequest instead so that
routing can be performed based upon other parts of the request like the Host header.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message