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

io.swagger.io.QueryParamAuthentication Maven / Gradle / Ivy

There is a newer version: 1.0.71
Show newest version
package io.swagger.io;

public class QueryParamAuthentication implements Authentication {
    private String name;
    private String value;

    public QueryParamAuthentication(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }

    @Override
    public void apply(HttpClient httpClient) {
        httpClient.addQueryParam(name, value);
    }

    @Override
    public String toString() {
        return "QueryParamAuthentication{" +
                "name='" + name + '\'' +
                ", value='" + value + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy