com.braintreepayments.http.multipart.FormData 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.multipart;
import java.io.IOException;
import java.io.OutputStream;
public abstract class FormData {
private String key;
public FormData(String key) {
this.key = key;
}
public String key() {
return key;
}
public String header() {
return String.format("Content-Disposition: form-data; name=\"%s\"", key());
}
public abstract void writeData(OutputStream os) throws IOException;
}