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<org.apache.hc.core5.http.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 static MultipartPartBuilder create(ContentBody body)
public static MultipartPartBuilder create()
public MultipartPartBuilder setBody(ContentBody body)
public MultipartPartBuilder addHeader(String name, String value, List<org.apache.hc.core5.http.NameValuePair> parameters)
public MultipartPartBuilder addHeader(String name, String value)
public MultipartPartBuilder setHeader(String name, String value)
public MultipartPartBuilder removeHeaders(String name)
public MultipartPart build()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.