> > > > > > For both of the above case, there is a problem that the ContentEntity > > doesn't contain the full set of HTTP Header. (at least, HTTP headers that > > are relevant to change detection) Should all HTTP Headers be stored in > the > > ContentEntity? > > Yes, that makes sense. However we need to implement it hybrid, since we > have FileContentEntity and HttpContentEntity. I mean ALL headers just > make sense for HttpContentEntity, right? >
How about assume parsing and extraction will always be run in the same thread? so, we may can the HttpClient Request and Response (and preferably the HttpEntity as well) in a ThreadLocal variable. In this way we don't need to change the interface. And be clear by a "finally" for sure. regards, mingfai
