public class MultipartEntityBuilder extends Object
HttpEntity
s.public static MultipartEntityBuilder create()
public MultipartEntityBuilder setMode(HttpMultipartMode mode)
public MultipartEntityBuilder setLaxMode()
public MultipartEntityBuilder setStrictMode()
public MultipartEntityBuilder setBoundary(String boundary)
public MultipartEntityBuilder setMimeSubtype(String subType)
@Deprecated public MultipartEntityBuilder seContentType(org.apache.http.entity.ContentType contentType)
setContentType(org.apache.http.entity.ContentType)
.public MultipartEntityBuilder setContentType(org.apache.http.entity.ContentType contentType)
public MultipartEntityBuilder setCharset(Charset charset)
public MultipartEntityBuilder addPart(FormBodyPart bodyPart)
public MultipartEntityBuilder addPart(String name, ContentBody contentBody)
public MultipartEntityBuilder addTextBody(String name, String text, org.apache.http.entity.ContentType contentType)
public MultipartEntityBuilder addTextBody(String name, String text)
public MultipartEntityBuilder addBinaryBody(String name, byte[] b, org.apache.http.entity.ContentType contentType, String filename)
public MultipartEntityBuilder addBinaryBody(String name, byte[] b)
public MultipartEntityBuilder addBinaryBody(String name, File file, org.apache.http.entity.ContentType contentType, String filename)
public MultipartEntityBuilder addBinaryBody(String name, File file)
public MultipartEntityBuilder addBinaryBody(String name, InputStream stream, org.apache.http.entity.ContentType contentType, String filename)
public MultipartEntityBuilder addBinaryBody(String name, InputStream stream)
public org.apache.http.HttpEntity build()
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.