Subclassing com.android.okhttp.AndroidShimResponseCache in application

70 Views Asked by At

I want to subclass ResponseCache and use a subclass of com.android.okhttp.AndroidShimResponseCache as an internal delegate.

In particular I want to add a small pre-caching method to the class, similar to AndroidShimResponseCache.put, but with my own files in the Response to be cached.

Then I would make my class (that inherits from ResponseCache) the system default.

How can I access AndroidShimResponseCache in my code to subclass it in my application?

I'm not able to get it from any repo or library on my device.

0

There are 0 best solutions below