org.mule.module.json.transformers
Class JsonCustomTransformer

java.lang.Object
  extended by org.mule.module.json.transformers.JsonCustomTransformer

@ContainsTransformerMethods
public class JsonCustomTransformer
extends Object


Constructor Summary
JsonCustomTransformer()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonCustomTransformer

public JsonCustomTransformer()
Method Detail

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.