public class AttachmentBuilder extends Object
Attachment
objects.Constructor and Description |
---|
AttachmentBuilder() |
Modifier and Type | Method and Description |
---|---|
Attachment |
build() |
AttachmentBuilder |
contentDisposition(ContentDisposition newContentDisposition) |
AttachmentBuilder |
dataHandler(DataHandler newDataHandler) |
AttachmentBuilder |
header(String key,
String value) |
AttachmentBuilder |
headers(javax.ws.rs.core.MultivaluedMap<String,String> allHeaders)
Set all of the headers.
|
AttachmentBuilder |
id(String id) |
AttachmentBuilder |
mediaType(String mediaType) |
AttachmentBuilder |
object(Object theObject) |
public AttachmentBuilder id(String id)
public AttachmentBuilder mediaType(String mediaType)
public AttachmentBuilder object(Object theObject)
public AttachmentBuilder dataHandler(DataHandler newDataHandler)
public AttachmentBuilder header(String key, String value)
public AttachmentBuilder headers(javax.ws.rs.core.MultivaluedMap<String,String> allHeaders)
allHeaders
- public AttachmentBuilder contentDisposition(ContentDisposition newContentDisposition)
public Attachment build()
Apache CXF