hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wright <daddy...@gmail.com>
Subject Cannot extend CookieSpec classes due to protected constructor
Date Thu, 09 Apr 2015 23:48:33 GMT
Hi Oleg,

I'm working to remove the numerous new 4.4 deprecation warnings in
ManifoldCF's web connector and ran into a serious problem.  Heretofore, we
had been overriding an existing cookiespec class (BrowserCompatSpec) and
disabling the BasicPathHandler's validation in order to handle certain
web-sites that use cross-domain cookies.  Unfortunately this is no longer
possible without putting the override class into
the org.apache.http.impl.cookie package.  BrowserCompatSpec is deprecated,
and none of the non-deprecated cookiespec classes can be overridden in the
manner described.  The reason that happens is because the basic constructor
supplied by abstract base class, which allows the handlers to be set, has
protected access.

What is your recommendation for working around this problem?  Is there a
way to do it without duplicating large chunks of code?

Karl

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message