@ContainsTransformerMethods public class JsonCustomTransformer extends Object
Constructor and Description |
---|
JsonCustomTransformer() |
Modifier and Type | Method and Description |
---|---|
Person |
toCar(byte[] doc,
org.codehaus.jackson.map.ObjectMapper context) |
EmailAddress |
toEmail(InputStream in,
Map headers,
org.codehaus.jackson.map.ObjectMapper mapper) |
List<Item> |
toItemList(String in,
org.codehaus.jackson.map.ObjectMapper mapper) |
List<Person> |
toPeople(String in,
org.codehaus.jackson.map.ObjectMapper mapper) |
@Transformer(sourceTypes=java.lang.String.class) public Person toCar(byte[] doc, org.codehaus.jackson.map.ObjectMapper context) throws IOException
IOException
@Transformer public EmailAddress toEmail(@Payload InputStream in, @InboundHeaders(value="*") Map headers, org.codehaus.jackson.map.ObjectMapper mapper) throws IOException
IOException
@Transformer(sourceTypes=java.io.InputStream.class) public List<Item> toItemList(@Payload String in, org.codehaus.jackson.map.ObjectMapper mapper) throws IOException
IOException
@Transformer(sourceTypes=java.io.InputStream.class) public List<Person> toPeople(@Payload String in, org.codehaus.jackson.map.ObjectMapper mapper) throws IOException
IOException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.