org.mule.module.json.transformers
Class JsonCustomTransformer
java.lang.Object
org.mule.module.json.transformers.JsonCustomTransformer
@ContainsTransformerMethods
public class JsonCustomTransformer
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonCustomTransformer
public JsonCustomTransformer()
toCar
@Transformer(sourceTypes=java.lang.String.class)
public Person toCar(byte[] doc,
org.codehaus.jackson.map.ObjectMapper context)
throws IOException
- Throws:
IOException
toEmail
@Transformer
public EmailAddress toEmail(@Payload
InputStream in,
@InboundHeaders(value="*")
Map headers,
org.codehaus.jackson.map.ObjectMapper mapper)
throws IOException
- Throws:
IOException
toItemList
@Transformer(sourceTypes=java.io.InputStream.class)
public List<Item> toItemList(@Payload
String in,
org.codehaus.jackson.map.ObjectMapper mapper)
throws IOException
- Throws:
IOException
toPeople
@Transformer(sourceTypes=java.io.InputStream.class)
public List<Person> toPeople(@Payload
String in,
org.codehaus.jackson.map.ObjectMapper mapper)
throws IOException
- Throws:
IOException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.