org.switchboard
Class HostInfoResult

java.lang.Object
  extended by org.switchboard.HostInfoResult

public class HostInfoResult
extends Object


Constructor Summary
HostInfoResult(String country, String city, float latitude, float longitude, URL flag)
           
 
Method Summary
 String getCity()
          Gets the city where the host is located, according to hostinfo.info
 String getCountry()
          Gets the country where the host is located, according to hostinfo.info
 URL getFlagURL()
          Gets the URL to a flag of the country where the host is located.
 float getLatitude()
          Gets the latitude of the host, according to hostinfo.info (like 54.226)
 float getLongitude()
          Gets the longitude of the host, according to hostinfo.info (like -88.4588)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostInfoResult

public HostInfoResult(String country,
                      String city,
                      float latitude,
                      float longitude,
                      URL flag)
Method Detail

getCity

public String getCity()
Gets the city where the host is located, according to hostinfo.info

Returns:
The city where the host is located, according to hostinfo.info

getCountry

public String getCountry()
Gets the country where the host is located, according to hostinfo.info

Returns:
The country where the host is located, according to hostinfo.info

getFlagURL

public URL getFlagURL()
Gets the URL to a flag of the country where the host is located.

Returns:
The URL to a flag of the country where the host is located.

getLatitude

public float getLatitude()
Gets the latitude of the host, according to hostinfo.info (like 54.226)

Returns:
The latitude of the host, according to hostinfo.info (like 54.226)

getLongitude

public float getLongitude()
Gets the longitude of the host, according to hostinfo.info (like -88.4588)

Returns:
The longitude, as -88.4588