hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baosen Cui (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCORE-440) Add a route inteceptor
Date Mon, 26 Dec 2016 04:12:58 GMT

     [ https://issues.apache.org/jira/browse/HTTPCORE-440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Baosen Cui updated HTTPCORE-440:
--------------------------------
    Priority: Minor  (was: Major)

> Add a route inteceptor
> ----------------------
>
>                 Key: HTTPCORE-440
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-440
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore
>            Reporter: Baosen Cui
>            Priority: Minor
>
> I had meet a problem that I need to log the time cost by  method “establishRoute”(
in httpclient ).
> Since there seems nothing to support, I wrote a interceptor into HttpCore coping the
structure of “HttpProcessor"
> Would this be accepted? Or there has already something alike?
> @ThreadSafe // provided injected dependencies are immutable
> public final class ImmutableRouteProcessor implements RouteProcessor {
> ...
> }
> public interface PostRouteInterceptor {
>   void postProcess(final HttpRequest request, final HttpContext context);
> }
> public interface PreRouteInterceptor {
>   void preProcess(final HttpRequest request, final HttpContext context);
> }
> public interface RouteProcessor extends PreRouteInterceptor, PostRouteInterceptor {
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message