public final class MapReturnHandler extends Object implements ReturnHandler<Map>
ReturnHandler implementation for maps.
When creates the Message.Builder it configures the correct DataType basing on the original
MetadataType
ReturnHandler.NullReturnHandler<T>nullHandler| Constructor and Description |
|---|
MapReturnHandler(org.mule.runtime.api.meta.model.HasOutputModel hasOutputModel) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.metadata.DataType |
getDataType() |
boolean |
handles(Object value) |
org.mule.runtime.api.message.Message.Builder |
toMessageBuilder(Map value)
Creates a
from a given value |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnullHandlerpublic MapReturnHandler(org.mule.runtime.api.meta.model.HasOutputModel hasOutputModel)
public org.mule.runtime.api.message.Message.Builder toMessageBuilder(Map value)
from a given valuetoMessageBuilder in interface ReturnHandler<Map>value - The value to create the Message.Builder frompublic org.mule.runtime.api.metadata.DataType getDataType()
getDataType in interface ReturnHandler<Map>DataType of the handlerpublic boolean handles(Object value)
handles in interface ReturnHandler<Map>Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.