cl.transbank.onepay.util.HttpUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transbank-sdk-java Show documentation
Show all versions of transbank-sdk-java Show documentation
Tranbank API integration SDK for Java Projects
package cl.transbank.onepay.util;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.io.IOException;
import java.net.URL;
public interface HttpUtil {
String request(URL url, OnepayHttpUtil.RequestMethod method, String query) throws IOException;
String request(URL url, OnepayHttpUtil.RequestMethod method, String query, HttpUtil.ContentType contentType)
throws IOException;
@AllArgsConstructor
enum ContentType {
JSON("application/json");
@Getter
private String contentType;
}
enum RequestMethod {
GET,
POST
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy