org.mule.examples.leagues.response
Class Positions

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

public class Positions
extends Object


Constructor Summary
Positions()
           
 
Method Summary
 List<Position> getPositions()
           
 void setPositions(List<Position> positions)
           
 String toJson(Positions positions)
           
 String toXml(Positions positions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Positions

public Positions()
Method Detail

getPositions

public List<Position> getPositions()

setPositions

public void setPositions(List<Position> positions)

toJson

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

toXml

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


Copyright © 2013. All rights reserved.