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

com.plaid.client.http.PlaidHttpRequest Maven / Gradle / Ivy

There is a newer version: 29.0.0
Show newest version
package com.plaid.client.http;

import java.util.HashMap;
import java.util.Map;

public class PlaidHttpRequest {

    private String path;
    private Map parameters;
    private Integer timeout;
    
    public PlaidHttpRequest(String path) {
        this.path = path;
        this.parameters = new HashMap();
    }

    public PlaidHttpRequest(String path, Map parameters, Integer timeout) {
        this.path = path;
        this.parameters = parameters;
        this.timeout = timeout;
    }
    
    public PlaidHttpRequest addParameter(String key, String value) {
        this.parameters.put(key, value);
        return this;
    }
    
    public String getPath() {
        return path;
    }
    
    public Map getParameters() {
        return parameters;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public boolean hasTimeout() {
        return timeout != null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy