
com.paymentwall.java.HttpActionBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paymentwall-java Show documentation
Show all versions of paymentwall-java Show documentation
This library allows developers to use Paymentwall APIs (Virtual Currency, Digital Goods featuring recurring billing, and Virtual Cart).
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 - 2025 Weber Informatics LLC | Privacy Policy