// RPCHandler: A class of XML-RPC-callable methods
public class RPCHandler
{
// Note: This is a "traditional" list of counties!
private String county[] = {"Bedfordshire", "Berkshire",
"Buckinghamshire", "Cambridgeshire", "Cheshire",
"Cornwall", "Cumberland", "Derbyshire", "Devon", "Dorset",
"Durham", "Essex", "Gloucestershire", "Hampshire", "Herefordshire",
"Hertfordshire", "Humberside", "Huntingdonshire",
"Kent", "Lancashire", "Leicestershire",
"Lincolnshire", "London", "Middlesex", "Norfolk",
"Northamptonshire", "Northumberland", "Nottinghamshire",
"Oxfordshire", "Rutland", "Shropshire",
"Somerset", "Staffordshire", "Suffolk", "Surrey", "Sussex",
"Warwickshire", "Westmorland", "Wiltshire", "Worcestershire",
"Yorkshire"};
public RPCHandler()
{}
public String getCountyName(int c)
{
return county[c - 1];
}
}
|