org.mule.examples.leagues.response
Class Teams

java.lang.Object
  extended by org.mule.examples.leagues.response.Teams

public class Teams
extends Object


Constructor Summary
Teams()
           
 
Method Summary
 List<Team> getTeams()
           
 void setTeams(List<Team> teams)
           
 String toJson(Teams teams)
           
 String toXml(Teams teams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Teams

public Teams()
Method Detail

getTeams

public List<Team> getTeams()

setTeams

public void setTeams(List<Team> teams)

toJson

@Transformer(resultMimeType="application/json")
public String toJson(Teams teams)
              throws IOException
Throws:
IOException

toXml

@Transformer(resultMimeType="text/xml")
public String toXml(Teams teams)
             throws IOException,
                    JAXBException
Throws:
IOException
JAXBException


Copyright © 2013. All rights reserved.