RbChat v4.56630229版本的 MD5 值为:d137f4b55d6b64b50641a810905f5957

以下内容为反编译后的 HttpServiceFactory4AJASONImpl.java 源代码,内容仅作参考


package com.x52im.rbchat.network.http;

import com.cxzhuanbann.zhongzuansba.R;
import com.eva.android.HttpService4A;
import com.eva.android.HttpServiceFactory4A;
import com.x52im.rbchat.MyApplication;
import com.x52im.rbchat.UrlConst;
public class HttpServiceFactory4AJASONImpl extends HttpServiceFactory4A {
    private static HttpServiceFactory4AJASONImpl instance;

    public static HttpServiceFactory4AJASONImpl getInstance() {
        if (instance == null) {
            HttpServiceFactory4A.defaultTipMsgIfFail = MyApplication.getInstance2().getString(R.string.general_network_faild);
            instance = new HttpServiceFactory4AJASONImpl();
        }
        return instance;
    }

    @Override
    public HttpService4A getService(String str) {
        HttpService4A httpService4A = getServiceInstances().get(str);
        if (httpService4A == null) {
            if (HttpServiceFactory4A.DEFAULT_SERVICE_NAME.equals(str)) {
                HttpServiceJASONImpl httpServiceJASONImpl = new HttpServiceJASONImpl(str, UrlConst.HTTP_COMMON_CONTROLLER_URL, "rest_post");
                addServices(UrlConst.HTTP_COMMON_CONTROLLER_URL, httpServiceJASONImpl);
                return httpServiceJASONImpl;
            }
            HttpServiceJASONImpl httpServiceJASONImpl2 = new HttpServiceJASONImpl(str, UrlConst.HTTP_COMMON_CONTROLLER_URL, "AVController");
            addServices("AVController", httpServiceJASONImpl2);
            return httpServiceJASONImpl2;
        }
        return httpService4A;
    }

    public HttpService4A getAService(String str) {
        HttpService4A httpService4A = getServiceInstances().get(str);
        if (httpService4A == null && "AVController".equals(str)) {
            HttpServiceJASONImpl httpServiceJASONImpl = new HttpServiceJASONImpl(str, UrlConst.HTTP_COMMON_CONTROLLER_URL, "AVController");
            addServices("AVController", httpServiceJASONImpl);
            return httpServiceJASONImpl;
        }
        return httpService4A;
    }

    public HttpService4A getSWService(String str) {
        HttpService4A httpService4A = getServiceInstances().get(str);
        if (httpService4A == null && "SWAvController".equals(str)) {
            HttpServiceJASONImpl httpServiceJASONImpl = new HttpServiceJASONImpl(str, "http://160.20.57.189/", "SWAvController");
            addServices("SWAvController", httpServiceJASONImpl);
            return httpServiceJASONImpl;
        }
        return httpService4A;
    }

    public HttpService4A getLService(String str) {
        HttpService4A httpService4A = getServiceInstances().get(str);
        if (httpService4A == null && "LogController".equals(str)) {
            HttpServiceJASONImpl httpServiceJASONImpl = new HttpServiceJASONImpl(str, UrlConst.HTTP_COMMON_CONTROLLER_URL, "LogController");
            addServices("LogController", httpServiceJASONImpl);
            return httpServiceJASONImpl;
        }
        return httpService4A;
    }

    public HttpService4A getGPService() {
        HttpService4A httpService4A = getServiceInstances().get("GPController");
        if (httpService4A == null) {
            HttpServiceJASONImpl httpServiceJASONImpl = new HttpServiceJASONImpl("GPController", UrlConst.HTTP_COMMON_CONTROLLER_URL, "/GroupProhibitionController");
            addServices("GPController", httpServiceJASONImpl);
            return httpServiceJASONImpl;
        }
        return httpService4A;
    }
}