Package org.wso2.msf4j.example
Class Player
- java.lang.Object
-
- org.wso2.msf4j.example.Player
-
- Direct Known Subclasses:
Bowler
@Path("/") public class Player extends java.lang.ObjectSub-resource class representing a cricket player.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetAge()java.lang.StringgetCountryId()java.lang.StringgetCountryName()java.lang.StringgetName()intgetPlayerId()PlayergetPlayerProfile(java.lang.String countryId, int playerId, java.lang.String type, java.lang.String countryName)java.lang.StringgetPlayerProfileFiled(java.lang.String countryId, int playerId, java.lang.String field)java.lang.StringgetType()voidsetAge(byte age)voidsetCountryId(java.lang.String countryId)voidsetCountryName(java.lang.String countryName)voidsetName(java.lang.String name)voidsetPlayerId(int playerId)voidsetType(java.lang.String type)
-
-
-
Method Detail
-
getPlayerProfileFiled
@GET @Path("/details/{filed}") public java.lang.String getPlayerProfileFiled(@PathParam("countryId") java.lang.String countryId, @PathParam("playerId") int playerId, @PathParam("filed") java.lang.String field)
-
getPlayerProfile
@POST @Path("") public Player getPlayerProfile(@PathParam("countryId") java.lang.String countryId, @PathParam("playerId") int playerId, @FormParam("type") java.lang.String type, @FormParam("countryName") java.lang.String countryName)
-
setType
public void setType(java.lang.String type)
-
setAge
public void setAge(byte age)
-
setCountryId
public void setCountryId(java.lang.String countryId)
-
setPlayerId
public void setPlayerId(int playerId)
-
setName
public void setName(java.lang.String name)
-
setCountryName
public void setCountryName(java.lang.String countryName)
-
getName
public java.lang.String getName()
-
getPlayerId
public int getPlayerId()
-
getCountryId
public java.lang.String getCountryId()
-
getCountryName
public java.lang.String getCountryName()
-
getAge
public byte getAge()
-
getType
public java.lang.String getType()
-
-