public static interface Message.CollectionBuilder extends Message.Builder
| Modifier and Type | Method and Description |
|---|---|
Message.CollectionBuilder |
attributes(TypedValue<?> typedValue)
Sets the
Message's TypedValue attributes to be built, including their value and media type. |
Message.CollectionBuilder |
attributesMediaType(MediaType mediaType)
|
Message.CollectionBuilder |
attributesValue(Object value)
Populates the builder from the given
value. |
Message.CollectionBuilder |
itemMediaType(MediaType mediaType)
|
Message.CollectionBuilder |
mediaType(MediaType mediaType)
|
Message.CollectionBuilder |
nullAttributesValue()
Sets a
#null value for the Message's attributes to be built. |
buildcollectionValue, collectionValue, nullValue, payload, streamValue, valueMessage.CollectionBuilder itemMediaType(MediaType mediaType)
MediaType for the collection items in the Message to be built. See
CollectionDataType.getItemDataType()mediaType - the mediaType to setNullPointerException - if the mediaType is nullMessage.CollectionBuilder mediaType(MediaType mediaType)
mediaType in interface Message.BuildermediaType - the mediaType to setMessage.CollectionBuilder attributes(TypedValue<?> typedValue)
Message's TypedValue attributes to be built, including their value and media type. This should be
used when you already have a TypedValue. Alternatively, a Message can be constructed from just the
attributes value or value and mediaType component parts and the builder will generate the TypedValue. See
Message.Builder.attributesValue(Object), Message.Builder.attributesMediaType(MediaType).
If a mediaType or value have been previously set for the attributes then they will be overwritten.
attributes in interface Message.BuildertypedValue - the attributes desiredMessage.CollectionBuilder nullAttributesValue()
#null value for the Message's attributes to be built.nullAttributesValue in interface Message.BuilderMessage.CollectionBuilder attributesValue(Object value)
value.
This method will get the type, mimeType and encoding from the given value according to its
concrete type.
attributesValue in interface Message.Buildervalue - an object instance.Message.CollectionBuilder attributesMediaType(MediaType mediaType)
attributesMediaType in interface Message.BuildermediaType - the mediaType to setCopyright © 2017 MuleSoft, Inc.. All rights reserved.