Class AttachmentBuilder
- java.lang.Object
-
- org.apache.cxf.jaxrs.ext.multipart.AttachmentBuilder
-
public class AttachmentBuilder extends Object
Fluid builder class forAttachmentobjects.
-
-
Constructor Summary
Constructors Constructor Description AttachmentBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachmentbuild()AttachmentBuildercontentDisposition(ContentDisposition newContentDisposition)AttachmentBuilderdataHandler(javax.activation.DataHandler newDataHandler)AttachmentBuilderheader(String key, String value)AttachmentBuilderheaders(javax.ws.rs.core.MultivaluedMap<String,String> allHeaders)Set all of the headers.AttachmentBuilderid(String id)AttachmentBuildermediaType(String mediaType)AttachmentBuilderobject(Object theObject)
-
-
-
Method Detail
-
id
public AttachmentBuilder id(String id)
-
mediaType
public AttachmentBuilder mediaType(String mediaType)
-
object
public AttachmentBuilder object(Object theObject)
-
dataHandler
public AttachmentBuilder dataHandler(javax.activation.DataHandler newDataHandler)
-
header
public AttachmentBuilder header(String key, String value)
-
headers
public AttachmentBuilder headers(javax.ws.rs.core.MultivaluedMap<String,String> allHeaders)
Set all of the headers. This will overwrite any content ID, media type, ContentDisposition, or other header set by previous calls.- Parameters:
allHeaders-- Returns:
-
contentDisposition
public AttachmentBuilder contentDisposition(ContentDisposition newContentDisposition)
-
build
public Attachment build()
-
-