com.braintreepayments.http.serializer.Serializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of braintreehttp Show documentation
Show all versions of braintreehttp Show documentation
This is Braintree's generic http library for generated SDKs
package com.braintreepayments.http.serializer;
import com.braintreepayments.http.HttpRequest;
import java.io.IOException;
public interface Serializer {
String contentType();
byte[] encode(HttpRequest request) throws IOException;
T decode(String source, Class cls) throws IOException;
}