public class ModuleTypeConversionSupport
extends java.lang.Object
| Constructor and Description |
|---|
ModuleTypeConversionSupport(CompositeMessageConverterFactory converterFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureMessageConverters(org.springframework.integration.channel.AbstractMessageChannel channel,
org.springframework.util.MimeType contentType,
java.lang.ClassLoader classLoader)
Configure the message converters for the given message channel and content type.
|
protected void |
configureModuleInputChannelMessageConverters(Module module)
Configure message converters for the given module's input channel.
|
protected void |
configureModuleOutputChannelMessageConverters(Module module)
Configure message converters for the given module's output channel.
|
static org.springframework.util.MimeType |
getInputMimeType(Module module)
Return
MimeType for the module's input channel. |
static org.springframework.util.MimeType |
getOutputMimeType(Module module)
Return
MimeType for the module's output channel. |
static org.springframework.util.MimeType |
resolveContentType(java.lang.String type,
Module module)
Resolve the
MimeType to use for the given content type
specified for the module input/output. |
public ModuleTypeConversionSupport(CompositeMessageConverterFactory converterFactory)
public static org.springframework.util.MimeType getInputMimeType(Module module)
MimeType for the module's input channel.module - the underlying modulepublic static org.springframework.util.MimeType getOutputMimeType(Module module)
MimeType for the module's output channel.module - the underlying moduleprotected void configureModuleInputChannelMessageConverters(Module module)
module - the underlying moduleprotected void configureModuleOutputChannelMessageConverters(Module module)
module - the underlying modulepublic void configureMessageConverters(org.springframework.integration.channel.AbstractMessageChannel channel,
org.springframework.util.MimeType contentType,
java.lang.ClassLoader classLoader)
channel - the message channel to configure the message converterscontentType - the content type to useclassLoader - the classloader to search the dataType(s) classespublic static org.springframework.util.MimeType resolveContentType(java.lang.String type,
Module module)
throws java.lang.ClassNotFoundException,
java.lang.LinkageError
MimeType to use for the given content type
specified for the module input/output.type - the content typemodule - the underlying modulejava.lang.ClassNotFoundExceptionjava.lang.LinkageError