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

com.ingenico.connect.gateway.sdk.java.defaultimpl.JsonEntity Maven / Gradle / Ivy

Go to download

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