com.ingenico.connect.gateway.sdk.java.defaultimpl.JsonEntity 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
The newest version!
package com.ingenico.connect.gateway.sdk.java.defaultimpl;
import java.nio.charset.Charset;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
/**
* A sub class of {@link StringEntity} that keeps its original string.
*/
class JsonEntity extends StringEntity {
private final String string;
JsonEntity(String string, Charset charset) {
super(string, ContentType.create(ContentType.APPLICATION_JSON.getMimeType(), charset));
this.string = string;
}
public String getString() {
return string;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy