com.ingenico.connect.gateway.sdk.java.RequestParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connect-sdk-java Show documentation
Show all versions of connect-sdk-java Show documentation
SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API
package com.ingenico.connect.gateway.sdk.java;
/**
* A single request parameter. Immutable.
*/
public class RequestParam {
private final String name;
private final String value;
public RequestParam(String name, String value) {
if (name == null || name.trim().isEmpty()) {
throw new IllegalArgumentException("name is required");
}
this.name = name;
this.value = value;
}
public String getName(){
return name;
}
/**
* @return The un-encoded value.
*/
public String getValue() {
return value;
}
@Override
public String toString() {
return getName() + ":" + getValue();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy