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