Uses of Class
com.ibm.websphere.jaxrs20.multipart.AttachmentBuilder
Package
Description
Copyright (c) 2021 IBM Corporation and others.
-
Uses of AttachmentBuilder in com.ibm.websphere.jaxrs20.multipart
Modifier and TypeMethodDescriptionSets theContent-ID
header in this attachment part.AttachmentBuilder.contentType
(String contentType) Sets theContent-Type
header for this attachment part.AttachmentBuilder.contentType
(jakarta.ws.rs.core.MediaType contentType) Sets theContent-Type
header for this attachment part.Sets the file name of this attachment part.Sets a header for this attachment part.Sets headers for this attachment part.AttachmentBuilder.inputStream
(InputStream inputStream) Sets the content of this attachment part as anInputStream
.AttachmentBuilder.inputStream
(String fileName, InputStream inputStream) Sets the content of this attachment part as anInputStream
.static AttachmentBuilder
AttachmentBuilder.newBuilder
(String fieldName) Create a newAttachmentBuilder
instance for creating a new attachment for a multipart payload.