public abstract class Transformers
extends java.lang.Object
Transformer
s.Constructor and Description |
---|
Transformers() |
Modifier and Type | Method and Description |
---|---|
static <T,U> org.springframework.integration.transformer.PayloadTypeConvertingTransformer<T,U> |
converter(org.springframework.core.convert.converter.Converter<T,U> converter) |
static <T> org.springframework.integration.transformer.DecodingTransformer<T> |
decoding(org.springframework.integration.codec.Codec codec,
java.lang.Class<T> type)
The factory method for the
DecodingTransformer . |
static <T> org.springframework.integration.transformer.DecodingTransformer<T> |
decoding(org.springframework.integration.codec.Codec codec,
org.springframework.expression.Expression typeExpression)
The factory method for the
DecodingTransformer . |
static <T> org.springframework.integration.transformer.DecodingTransformer<T> |
decoding(org.springframework.integration.codec.Codec codec,
Function<org.springframework.messaging.Message<?>,java.lang.Class<T>> typeFunction)
The factory method for the
DecodingTransformer . |
static <T> org.springframework.integration.transformer.DecodingTransformer<T> |
decoding(org.springframework.integration.codec.Codec codec,
java.lang.String typeExpression)
The factory method for the
DecodingTransformer . |
static org.springframework.integration.transformer.PayloadDeserializingTransformer |
deserializer() |
static org.springframework.integration.transformer.PayloadDeserializingTransformer |
deserializer(org.springframework.core.serializer.Deserializer<java.lang.Object> deserializer) |
static <T> org.springframework.integration.transformer.EncodingPayloadTransformer<T> |
encoding(org.springframework.integration.codec.Codec codec)
The factory method for the
EncodingPayloadTransformer . |
static org.springframework.integration.file.transformer.FileToByteArrayTransformer |
fileToByteArray() |
static org.springframework.integration.file.transformer.FileToStringTransformer |
fileToString() |
static org.springframework.integration.file.transformer.FileToStringTransformer |
fileToString(java.lang.String charset) |
static org.springframework.integration.json.JsonToObjectTransformer |
fromJson() |
static org.springframework.integration.json.JsonToObjectTransformer |
fromJson(java.lang.Class<?> targetClass) |
static org.springframework.integration.json.JsonToObjectTransformer |
fromJson(java.lang.Class<?> targetClass,
org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper) |
static org.springframework.integration.json.JsonToObjectTransformer |
fromJson(org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper) |
static org.springframework.integration.mail.transformer.MailToStringTransformer |
fromMail() |
static org.springframework.integration.mail.transformer.MailToStringTransformer |
fromMail(java.lang.String charset) |
static org.springframework.integration.transformer.MapToObjectTransformer |
fromMap(java.lang.Class<?> targetClass) |
static org.springframework.integration.transformer.MapToObjectTransformer |
fromMap(java.lang.String beanName) |
static org.springframework.integration.xml.transformer.MarshallingTransformer |
marshaller(org.springframework.oxm.Marshaller marshaller) |
static org.springframework.integration.xml.transformer.MarshallingTransformer |
marshaller(org.springframework.oxm.Marshaller marshaller,
boolean extractPayload) |
static org.springframework.integration.xml.transformer.MarshallingTransformer |
marshaller(org.springframework.oxm.Marshaller marshaller,
org.springframework.integration.xml.result.ResultFactory resultFactory) |
static org.springframework.integration.xml.transformer.MarshallingTransformer |
marshaller(org.springframework.oxm.Marshaller marshaller,
org.springframework.integration.xml.result.ResultFactory resultFactory,
boolean extractPayload) |
static org.springframework.integration.xml.transformer.MarshallingTransformer |
marshaller(org.springframework.oxm.Marshaller marshaller,
org.springframework.integration.xml.transformer.ResultTransformer resultTransformer) |
static org.springframework.integration.xml.transformer.MarshallingTransformer |
marshaller(org.springframework.oxm.Marshaller marshaller,
org.springframework.integration.xml.transformer.ResultTransformer resultTransformer,
boolean extractPayload) |
static org.springframework.integration.xml.transformer.MarshallingTransformer |
marshaller(org.springframework.oxm.Marshaller marshaller,
org.springframework.integration.xml.transformer.ResultTransformer resultTransformer,
org.springframework.integration.xml.result.ResultFactory resultFactory) |
static org.springframework.integration.xml.transformer.MarshallingTransformer |
marshaller(org.springframework.oxm.Marshaller marshaller,
org.springframework.integration.xml.transformer.ResultTransformer resultTransformer,
org.springframework.integration.xml.result.ResultFactory resultFactory,
boolean extractPayload) |
static org.springframework.integration.transformer.ObjectToStringTransformer |
objectToString() |
static org.springframework.integration.transformer.ObjectToStringTransformer |
objectToString(java.lang.String charset) |
static org.springframework.integration.transformer.PayloadSerializingTransformer |
serializer() |
static org.springframework.integration.transformer.PayloadSerializingTransformer |
serializer(org.springframework.core.serializer.Serializer<java.lang.Object> serializer) |
static org.springframework.integration.transformer.SyslogToMapTransformer |
syslogToMap() |
static org.springframework.integration.json.ObjectToJsonTransformer |
toJson() |
static org.springframework.integration.json.ObjectToJsonTransformer |
toJson(org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper) |
static org.springframework.integration.json.ObjectToJsonTransformer |
toJson(org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper,
org.springframework.integration.json.ObjectToJsonTransformer.ResultType resultType) |
static org.springframework.integration.json.ObjectToJsonTransformer |
toJson(org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper,
org.springframework.integration.json.ObjectToJsonTransformer.ResultType resultType,
java.lang.String contentType) |
static org.springframework.integration.json.ObjectToJsonTransformer |
toJson(org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper,
java.lang.String contentType) |
static org.springframework.integration.json.ObjectToJsonTransformer |
toJson(org.springframework.integration.json.ObjectToJsonTransformer.ResultType resultType,
java.lang.String contentType) |
static org.springframework.integration.json.ObjectToJsonTransformer |
toJson(java.lang.String contentType) |
static org.springframework.integration.transformer.ObjectToMapTransformer |
toMap() |
static org.springframework.integration.transformer.ObjectToMapTransformer |
toMap(boolean shouldFlattenKeys) |
static org.springframework.integration.xml.transformer.UnmarshallingTransformer |
unmarshaller(org.springframework.oxm.Unmarshaller unmarshaller) |
static org.springframework.integration.xml.transformer.UnmarshallingTransformer |
unmarshaller(org.springframework.oxm.Unmarshaller unmarshaller,
boolean alwaysUseSourceFactory) |
static org.springframework.integration.xml.transformer.UnmarshallingTransformer |
unmarshaller(org.springframework.oxm.Unmarshaller unmarshaller,
org.springframework.integration.xml.source.SourceFactory sourceFactory) |
static org.springframework.integration.xml.transformer.UnmarshallingTransformer |
unmarshaller(org.springframework.oxm.Unmarshaller unmarshaller,
org.springframework.integration.xml.source.SourceFactory sourceFactory,
boolean alwaysUseSourceFactory) |
static org.springframework.integration.xml.transformer.SourceCreatingTransformer |
xmlSource() |
static org.springframework.integration.xml.transformer.SourceCreatingTransformer |
xmlSource(org.springframework.integration.xml.source.SourceFactory sourceFactory) |
static org.springframework.integration.xml.transformer.XPathTransformer |
xpath(java.lang.String xpathExpression) |
static org.springframework.integration.xml.transformer.XPathTransformer |
xpath(java.lang.String xpathExpression,
org.springframework.xml.xpath.NodeMapper<?> nodeMapper) |
static org.springframework.integration.xml.transformer.XPathTransformer |
xpath(java.lang.String xpathExpression,
org.springframework.integration.xml.xpath.XPathEvaluationType xpathEvaluationType) |
static org.springframework.integration.xml.transformer.XPathTransformer |
xpath(java.lang.String xpathExpression,
org.springframework.integration.xml.xpath.XPathEvaluationType xpathEvaluationType,
org.springframework.xml.xpath.NodeMapper<?> nodeMapper) |
static org.springframework.integration.xml.transformer.XsltPayloadTransformer |
xslt(org.springframework.core.io.Resource xsltTemplate,
Tuple2<java.lang.String,org.springframework.expression.Expression>... xslParameterMappings) |
public static org.springframework.integration.transformer.ObjectToStringTransformer objectToString()
public static org.springframework.integration.transformer.ObjectToStringTransformer objectToString(java.lang.String charset)
public static org.springframework.integration.transformer.ObjectToMapTransformer toMap()
public static org.springframework.integration.transformer.ObjectToMapTransformer toMap(boolean shouldFlattenKeys)
public static org.springframework.integration.transformer.MapToObjectTransformer fromMap(java.lang.Class<?> targetClass)
public static org.springframework.integration.transformer.MapToObjectTransformer fromMap(java.lang.String beanName)
public static org.springframework.integration.json.ObjectToJsonTransformer toJson()
public static org.springframework.integration.json.ObjectToJsonTransformer toJson(org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper)
public static org.springframework.integration.json.ObjectToJsonTransformer toJson(org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper, org.springframework.integration.json.ObjectToJsonTransformer.ResultType resultType)
public static org.springframework.integration.json.ObjectToJsonTransformer toJson(java.lang.String contentType)
public static org.springframework.integration.json.ObjectToJsonTransformer toJson(org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper, java.lang.String contentType)
public static org.springframework.integration.json.ObjectToJsonTransformer toJson(org.springframework.integration.json.ObjectToJsonTransformer.ResultType resultType, java.lang.String contentType)
public static org.springframework.integration.json.ObjectToJsonTransformer toJson(org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper, org.springframework.integration.json.ObjectToJsonTransformer.ResultType resultType, java.lang.String contentType)
public static org.springframework.integration.json.JsonToObjectTransformer fromJson()
public static org.springframework.integration.json.JsonToObjectTransformer fromJson(java.lang.Class<?> targetClass)
public static org.springframework.integration.json.JsonToObjectTransformer fromJson(org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper)
public static org.springframework.integration.json.JsonToObjectTransformer fromJson(java.lang.Class<?> targetClass, org.springframework.integration.support.json.JsonObjectMapper<?,?> jsonObjectMapper)
public static org.springframework.integration.transformer.PayloadSerializingTransformer serializer()
public static org.springframework.integration.transformer.PayloadSerializingTransformer serializer(org.springframework.core.serializer.Serializer<java.lang.Object> serializer)
public static org.springframework.integration.transformer.PayloadDeserializingTransformer deserializer()
public static org.springframework.integration.transformer.PayloadDeserializingTransformer deserializer(org.springframework.core.serializer.Deserializer<java.lang.Object> deserializer)
public static <T,U> org.springframework.integration.transformer.PayloadTypeConvertingTransformer<T,U> converter(org.springframework.core.convert.converter.Converter<T,U> converter)
public static org.springframework.integration.transformer.SyslogToMapTransformer syslogToMap()
public static org.springframework.integration.mail.transformer.MailToStringTransformer fromMail()
public static org.springframework.integration.mail.transformer.MailToStringTransformer fromMail(java.lang.String charset)
public static org.springframework.integration.file.transformer.FileToStringTransformer fileToString()
public static org.springframework.integration.file.transformer.FileToStringTransformer fileToString(java.lang.String charset)
public static org.springframework.integration.file.transformer.FileToByteArrayTransformer fileToByteArray()
public static org.springframework.integration.xml.transformer.MarshallingTransformer marshaller(org.springframework.oxm.Marshaller marshaller)
public static org.springframework.integration.xml.transformer.MarshallingTransformer marshaller(org.springframework.oxm.Marshaller marshaller, org.springframework.integration.xml.transformer.ResultTransformer resultTransformer)
public static org.springframework.integration.xml.transformer.MarshallingTransformer marshaller(org.springframework.oxm.Marshaller marshaller, org.springframework.integration.xml.result.ResultFactory resultFactory)
public static org.springframework.integration.xml.transformer.MarshallingTransformer marshaller(org.springframework.oxm.Marshaller marshaller, boolean extractPayload)
public static org.springframework.integration.xml.transformer.MarshallingTransformer marshaller(org.springframework.oxm.Marshaller marshaller, org.springframework.integration.xml.result.ResultFactory resultFactory, boolean extractPayload)
public static org.springframework.integration.xml.transformer.MarshallingTransformer marshaller(org.springframework.oxm.Marshaller marshaller, org.springframework.integration.xml.transformer.ResultTransformer resultTransformer, boolean extractPayload)
public static org.springframework.integration.xml.transformer.MarshallingTransformer marshaller(org.springframework.oxm.Marshaller marshaller, org.springframework.integration.xml.transformer.ResultTransformer resultTransformer, org.springframework.integration.xml.result.ResultFactory resultFactory)
public static org.springframework.integration.xml.transformer.MarshallingTransformer marshaller(org.springframework.oxm.Marshaller marshaller, org.springframework.integration.xml.transformer.ResultTransformer resultTransformer, org.springframework.integration.xml.result.ResultFactory resultFactory, boolean extractPayload)
public static org.springframework.integration.xml.transformer.UnmarshallingTransformer unmarshaller(org.springframework.oxm.Unmarshaller unmarshaller)
public static org.springframework.integration.xml.transformer.UnmarshallingTransformer unmarshaller(org.springframework.oxm.Unmarshaller unmarshaller, org.springframework.integration.xml.source.SourceFactory sourceFactory)
public static org.springframework.integration.xml.transformer.UnmarshallingTransformer unmarshaller(org.springframework.oxm.Unmarshaller unmarshaller, boolean alwaysUseSourceFactory)
public static org.springframework.integration.xml.transformer.UnmarshallingTransformer unmarshaller(org.springframework.oxm.Unmarshaller unmarshaller, org.springframework.integration.xml.source.SourceFactory sourceFactory, boolean alwaysUseSourceFactory)
public static org.springframework.integration.xml.transformer.SourceCreatingTransformer xmlSource()
public static org.springframework.integration.xml.transformer.SourceCreatingTransformer xmlSource(org.springframework.integration.xml.source.SourceFactory sourceFactory)
public static org.springframework.integration.xml.transformer.XPathTransformer xpath(java.lang.String xpathExpression)
public static org.springframework.integration.xml.transformer.XPathTransformer xpath(java.lang.String xpathExpression, org.springframework.integration.xml.xpath.XPathEvaluationType xpathEvaluationType)
public static org.springframework.integration.xml.transformer.XPathTransformer xpath(java.lang.String xpathExpression, org.springframework.xml.xpath.NodeMapper<?> nodeMapper)
public static org.springframework.integration.xml.transformer.XPathTransformer xpath(java.lang.String xpathExpression, org.springframework.integration.xml.xpath.XPathEvaluationType xpathEvaluationType, org.springframework.xml.xpath.NodeMapper<?> nodeMapper)
@SafeVarargs public static org.springframework.integration.xml.transformer.XsltPayloadTransformer xslt(org.springframework.core.io.Resource xsltTemplate, Tuple2<java.lang.String,org.springframework.expression.Expression>... xslParameterMappings)
public static <T> org.springframework.integration.transformer.EncodingPayloadTransformer<T> encoding(org.springframework.integration.codec.Codec codec)
EncodingPayloadTransformer
.T
- the payload
type.codec
- the Codec
to use.EncodingPayloadTransformer
instance.public static <T> org.springframework.integration.transformer.DecodingTransformer<T> decoding(org.springframework.integration.codec.Codec codec, java.lang.Class<T> type)
DecodingTransformer
.T
- the target type.codec
- the Codec
to use.type
- the target type to transform to.DecodingTransformer
instance.public static <T> org.springframework.integration.transformer.DecodingTransformer<T> decoding(org.springframework.integration.codec.Codec codec, java.lang.String typeExpression)
DecodingTransformer
.T
- the target type.codec
- the Codec
to use.typeExpression
- the target type SpEL expression.DecodingTransformer
instance.public static <T> org.springframework.integration.transformer.DecodingTransformer<T> decoding(org.springframework.integration.codec.Codec codec, Function<org.springframework.messaging.Message<?>,java.lang.Class<T>> typeFunction)
DecodingTransformer
.T
- the target type.codec
- the Codec
to use.typeFunction
- the target type function.DecodingTransformer
instance.public static <T> org.springframework.integration.transformer.DecodingTransformer<T> decoding(org.springframework.integration.codec.Codec codec, org.springframework.expression.Expression typeExpression)
DecodingTransformer
.T
- the target type.codec
- the Codec
to use.typeExpression
- the target type SpEL expression.DecodingTransformer
instance.