EntityPart.Builder |
EntityPart.Builder.content(InputStream content) |
Sets the content for this part.
|
default EntityPart.Builder |
EntityPart.Builder.content(Object content) |
Sets the content for this part.
|
default EntityPart.Builder |
EntityPart.Builder.content(String fileName,
InputStream content) |
Convenience method, equivalent to calling
fileName(fileName).content(content) .
|
<T> EntityPart.Builder |
EntityPart.Builder.content(T content,
GenericType<T> type) |
Sets the content for this part.
|
<T> EntityPart.Builder |
EntityPart.Builder.content(T content,
Class<? extends T> type) |
Sets the content for this part.
|
EntityPart.Builder |
EntityPart.Builder.fileName(String fileName) |
Sets the file name for this part.
|
EntityPart.Builder |
EntityPart.Builder.header(String headerName,
String... headerValues) |
Adds a new header or replaces a previously added header and sets the header
value(s).
|
EntityPart.Builder |
EntityPart.Builder.headers(MultivaluedMap<String,String> newHeaders) |
Adds new headers or replaces previously added headers.
|
EntityPart.Builder |
EntityPart.Builder.mediaType(MediaType mediaType) |
Sets the media type for the EntityPart.
|
EntityPart.Builder |
EntityPart.Builder.mediaType(String mediaTypeString) |
Convenience method for setting the media type for the EntityPart.
|
static EntityPart.Builder |
EntityPart.withFileName(String partAndFileName) |
Creates a new EntityPart.Builder instance that sets the part
name and fileName to the passed in partAndFileName
value.
|
static EntityPart.Builder |
EntityPart.withName(String partName) |
Creates a new EntityPart.Builder instance.
|