| Package | Description |
|---|---|
| org.mule.runtime.api.message | |
| org.mule.runtime.api.metadata |
| Modifier and Type | Method and Description |
|---|---|
MuleMessage.CollectionBuilder |
MuleMessage.CollectionBuilder.itemMediaType(MediaType mediaType)
Sets the
MediaType for the collection items in the MuleMessage to be built. |
MuleMessage.Builder |
MuleMessage.Builder.mediaType(MediaType mediaType)
Sets the
MediaType for the MuleMessage to be built. |
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
MediaType.ANY |
static MediaType |
MediaType.APPLICATION_JSON |
static MediaType |
MediaType.APPLICATION_XML |
static MediaType |
MediaType.ATOM |
static MediaType |
MediaType.BINARY |
static MediaType |
MediaType.HTML |
static MediaType |
MediaType.JSON |
static MediaType |
MediaType.MULTIPART_MIXED |
static MediaType |
MediaType.MULTIPART_RELATED |
static MediaType |
MediaType.MULTIPART_X_MIXED_REPLACE |
static MediaType |
MediaType.RSS |
static MediaType |
MediaType.TEXT |
static MediaType |
MediaType.UNKNOWN |
static MediaType |
MediaType.XML |
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
MediaType.create(String primaryType,
String subType)
Returns a media-type for.
|
static MediaType |
MediaType.create(String primaryType,
String subType,
Charset charset)
Returns a media-type for the given parameters.
|
MediaType |
DataType.getMediaType()
The mime type of the the source object to transform.
|
static MediaType |
MediaType.parse(String mediaType)
Parses a media type from its string representation.
|
MediaType |
MediaType.withCharset(Charset charset)
Creates a new
MediaType instance maintaing the type and sub-type but replacing the
charset with the value passed. |
MediaType |
MediaType.withoutParameters()
Creates a new
MediaType instance maintaing the type and sub-type but removing all the
parameters (like the charset) |
| Modifier and Type | Method and Description |
|---|---|
DataTypeBuilder.DataTypeCollectionTypeBuilder |
DataTypeBuilder.DataTypeCollectionTypeBuilder.itemMediaType(MediaType itemMediaType)
|
boolean |
MediaType.matches(MediaType other)
Evaluates the type of this object against the ones of the
other MediaType. |
DataTypeParamsBuilder |
DataTypeParamsBuilder.mediaType(MediaType mediaType)
Sets the given
mediaType. |
Copyright © 2016 MuleSoft, Inc.. All rights reserved.