Package org.wso2.msf4j.example
Class Team
- java.lang.Object
-
- org.wso2.msf4j.example.Team
-
@Path("/") public class Team extends java.lang.ObjectSub-resource class representing a country's cricket team.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCountryId()java.lang.StringgetCountryName()TeamgetCountryTeam(java.lang.String countryId)TeamgetCountryTeamFromPost(java.lang.String countryId, java.lang.String countryName)PlayergetPlayerObj(java.lang.String countryId, int playerId)java.lang.StringgetTeamType()voidsetCountryId(java.lang.String countryId)voidsetCountryName(java.lang.String countryName)voidsetTeamType(java.lang.String teamType)
-
-
-
Method Detail
-
getCountryId
public java.lang.String getCountryId()
-
getCountryName
public java.lang.String getCountryName()
-
setCountryName
public void setCountryName(java.lang.String countryName)
-
getTeamType
public java.lang.String getTeamType()
-
setTeamType
public void setTeamType(java.lang.String teamType)
-
setCountryId
public void setCountryId(java.lang.String countryId)
-
getPlayerObj
@Path("/{playerId}") public Player getPlayerObj(@PathParam("countryId") java.lang.String countryId, @PathParam("playerId") int playerId)
-
getCountryTeam
@GET @Path("") public Team getCountryTeam(@PathParam("countryId") java.lang.String countryId)
-
getCountryTeamFromPost
@POST @Path("") public Team getCountryTeamFromPost(@PathParam("countryId") java.lang.String countryId, @FormParam("countryName") java.lang.String countryName)
-
-