protected OkHttpClient configureHttpClient(){
  final OkHttpClient.Builder builder=new OkHttpClient.Builder();
  final CookieManager cookieManager=new CookieManager();
  cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);
  builder.cookieJar(new JavaNetCookieJar(cookieManager));
  builder.connectTimeout(60,TimeUnit.SECONDS);
  builder.writeTimeout(60,TimeUnit.SECONDS);
  builder.readTimeout(90,TimeUnit.SECONDS);
  return builder.build();
}

protected OkHttpClient configureHttpClient ( ) { final OkHttpClient . Builder builder = new OkHttpClient . Builder ( ) ; final CookieManager cookieManager = new CookieManager ( ) ; cookieManager . setCookiePolicy ( CookiePolicy . ACCEPT_ALL ) ; builder . cookieJar ( new JavaNetCookieJar ( cookieManager ) ) ; builder . connectTimeout ( 60 , TimeUnit . SECONDS ) ; builder . writeTimeout ( 60 , TimeUnit . SECONDS ) ; builder . readTimeout ( 90 , TimeUnit . SECONDS ) ; return builder . build ( ) ; }
configures the http client .
