public class MultipartPartBuilder extends Object
MultipartPart
s.Modifier and Type | Method and Description |
---|---|
MultipartPartBuilder |
addHeader(String name,
String value) |
MultipartPartBuilder |
addHeader(String name,
String value,
List<NameValuePair> parameters) |
MultipartPart |
build() |
static MultipartPartBuilder |
create() |
static MultipartPartBuilder |
create(ContentBody body) |
MultipartPartBuilder |
removeHeaders(String name) |
MultipartPartBuilder |
setBody(ContentBody body) |
MultipartPartBuilder |
setHeader(String name,
String value) |
public MultipartPartBuilder addHeader(String name, String value)
public MultipartPartBuilder addHeader(String name, String value, List<NameValuePair> parameters)
public MultipartPart build()
public static MultipartPartBuilder create()
public static MultipartPartBuilder create(ContentBody body)
public MultipartPartBuilder removeHeaders(String name)
public MultipartPartBuilder setBody(ContentBody body)
public MultipartPartBuilder setHeader(String name, String value)