/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.common.http.GenericHttpClient
 *  com.l7tech.common.http.GenericHttpException
 *  com.l7tech.common.http.GenericHttpRequest
 *  com.l7tech.common.http.GenericHttpRequestParams
 *  com.l7tech.common.http.HttpMethod
 */
package com.l7tech.server.globalresources;

import com.l7tech.common.http.GenericHttpClient;
import com.l7tech.common.http.GenericHttpException;
import com.l7tech.common.http.GenericHttpRequest;
import com.l7tech.common.http.GenericHttpRequestParams;
import com.l7tech.common.http.HttpMethod;
import com.l7tech.server.globalresources.HttpConfigurationCache;
import com.l7tech.server.globalresources.a;

class b
implements GenericHttpClient {
    private final GenericHttpClient a;
    private final HttpConfigurationCache b;
    private final boolean c;

    public GenericHttpRequest createRequest(HttpMethod httpMethod, GenericHttpRequestParams genericHttpRequestParams) throws GenericHttpException {
        return this.a.createRequest(httpMethod, this.a(genericHttpRequestParams));
    }

    b(GenericHttpClient genericHttpClient, HttpConfigurationCache httpConfigurationCache, boolean bl2) {
        this.a = genericHttpClient;
        this.b = httpConfigurationCache;
        this.c = bl2;
    }

    private GenericHttpRequestParams a(GenericHttpRequestParams genericHttpRequestParams) {
        a a10 = new a(this.b, this.c, genericHttpRequestParams);
        return a10.resolve(genericHttpRequestParams.getTargetUrl());
    }
}

