HTTP Cache For Java

Move common auth code to AbstractResponseResolver