All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.paymentwall.java.HttpActionBuilder Maven / Gradle / Ivy

package com.paymentwall.java;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * Pattern Builder for HttpAction class
 */
public class HttpActionBuilder {
    private ApiObject object;
    private HashMap params = new HashMap(){{
        put("public_key", Config.getInstance().getPublicKey());
    }};
    private ArrayList headers = new ArrayList();

    public HttpActionBuilder(ApiObject object) {
        this.object = object;
    }

    public void setParams(HashMap params) {
        this.params = params;
    }

    public void setHeaders(ArrayList headers) {
        this.headers = headers;
    }

    public HttpAction build() {
        return new HttpAction(object,params,headers);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy