Package org.frankframework.http.mime
Class MultipartEntityBuilder
java.lang.Object
org.frankframework.http.mime.MultipartEntityBuilder
Builder for (mtom-)multipart
HttpEntity
s.
See link.-
Method Summary
Modifier and TypeMethodDescriptionaddBinaryBody
(String name, InputStream stream) addBinaryBody
(String name, InputStream stream, org.apache.http.entity.ContentType contentType, String filename) addPart
(org.apache.http.entity.mime.FormBodyPart bodyPart) addTextBody
(String name, String text) addTextBody
(String name, String text, org.apache.http.entity.ContentType contentType) build()
static MultipartEntityBuilder
create()
setBoundary
(String boundary) setCharset
(Charset charset) setContentType
(org.apache.http.entity.ContentType contentType) setMimeSubtype
(String subType) setMtomMultipart
(boolean mtom)
-
Method Details
-
create
-
setBoundary
-
setMtomMultipart
-
setMtomMultipart
-
setMimeSubtype
-
setContentType
-
setCharset
-
addPart
-
addPart
public MultipartEntityBuilder addPart(String name, org.apache.http.entity.mime.content.ContentBody contentBody) -
addPart
-
addTextBody
-
addTextBody
public MultipartEntityBuilder addTextBody(String name, String text, org.apache.http.entity.ContentType contentType) -
addBinaryBody
-
addBinaryBody
public MultipartEntityBuilder addBinaryBody(String name, InputStream stream, org.apache.http.entity.ContentType contentType, String filename) -
build
-