com.braintreepayments.http.multipart.MultipartBody 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.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
public class MultipartBody implements Iterable {
private List partList;
public MultipartBody(FormData... parts) {
this.partList = new ArrayList<>();
partList.addAll(Arrays.asList(parts));
}
public void addPart(FormData part) {
partList.add(part);
}
@Override
public Iterator iterator() {
return partList.iterator();
}
}