/*
 *  Copyright (c) 2016. Aurus Network Infotech Pvt Ltd and/or SuperProfs.com- All rights reserved.
 *    Unauthorized copying of this file, via any medium is strictly prohibited
 *    Proprietary and confidential
 *    <email>admin@superprofs.com</email>
 */

package com.aksm.common;

/**
 * HttpManager.
 *
 * @author ashwani
 * @since 2016-05-05
 */

import okhttp3.OkHttpClient;

import java.util.concurrent.TimeUnit;

public class HttpManager {
    private static HttpManager instance = new HttpManager();
    private OkHttpClient okHttpClient;
    private static final int TIME_OUT = 60;

    private HttpManager() {
        OkHttpClient.Builder httpClient = new OkHttpClient.Builder();
        httpClient.connectTimeout(TIME_OUT, TimeUnit.SECONDS);
        httpClient.readTimeout(TIME_OUT, TimeUnit.SECONDS);
        httpClient.writeTimeout(TIME_OUT, TimeUnit.SECONDS);
        httpClient.retryOnConnectionFailure(false);
        okHttpClient = httpClient.build();
    }

    public static HttpManager getInstance() {
        return instance;
    }


    public OkHttpClient getOkHttpClient() {
        return okHttpClient;
    }


}


@@ -1,265 +1,4 @@
-/*%0A *  Copyright (c) 2016. Aurus Network Infotech Pvt Ltd and/or SuperProfs.com- All rights reserved.%0A *    Unauthorized copying of this file, via any medium is strictly prohibited%0A *    Proprietary and confidential%0A *    %3Cemail%3Eadmin@superprofs.com%3C/email%3E%0A */
 %0A%0Apa

Update HttpManager.java