hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: org.apache.http.protocol.HttpCoreContext.getAttribute(String, Class<T>)
Date Sat, 01 Apr 2017 17:19:06 GMT
On Fri, 2017-03-31 at 16:34 -0700, Gary Gregory wrote:
> I am always casting when I call HttpContext.getAttribute(String) for
> well-known keys defined HttpCoreContext like HTTP_CONNECTION.
> 
> It seems we could make
> 
> org.apache.http.protocol.HttpCoreContext.getAttribute(String,
> Class<T>)
> 
> part of the interface HttpContext.
> 
> Thoughts?
> 
> Gayr
> 

Hi Gary

Usually one would probably want to use an adapter class such
HttpCoreContext or HttpClientContext to get access to context specific
attributes but I am fine with moving the method to the generic
HttpContext interface.

Oleg 

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


Mime
View raw message