com.hack23.cia.service.impl
Class GeoIpCountryServiceImpl.IpLocationImpl

Package class diagram package GeoIpCountryServiceImpl.IpLocationImpl
java.lang.Object
  extended by com.hack23.cia.service.impl.GeoIpCountryServiceImpl.IpLocationImpl
All Implemented Interfaces:
GeoIpCountryService.IpLocation
Enclosing class:
GeoIpCountryServiceImpl

public class GeoIpCountryServiceImpl.IpLocationImpl
extends Object
implements GeoIpCountryService.IpLocation

The Class IpLocationImpl.


Field Summary
 String city
          The city.
 String countryCode
          The country code.
 String countryName
          The country name.
 float latitude
          The latitude.
 float longitude
          The longitude.
 String postalCode
          The postal code.
 String region
          The region.
 
Constructor Summary
GeoIpCountryServiceImpl.IpLocationImpl(com.maxmind.geoip.Location location)
          Instantiates a new ip location impl.
GeoIpCountryServiceImpl.IpLocationImpl(String countryCode, String countryName, String region, String city, String postalCode, float latitude, float longitude)
          Instantiates a new ip location impl.
 
Method Summary
 String getCity()
          Gets the city.
 String getCountryCode()
          Gets the country code.
 String getCountryName()
          Gets the country name.
 float getLatitude()
          Gets the latitude.
 float getLongitude()
          Gets the longitude.
 String getPostalCode()
          Gets the postal code.
 String getRegion()
          Gets the region.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

countryCode

public String countryCode
The country code.


countryName

public String countryName
The country name.


region

public String region
The region.


city

public String city
The city.


postalCode

public String postalCode
The postal code.


latitude

public float latitude
The latitude.


longitude

public float longitude
The longitude.

Constructor Detail

GeoIpCountryServiceImpl.IpLocationImpl

public GeoIpCountryServiceImpl.IpLocationImpl(com.maxmind.geoip.Location location)
Instantiates a new ip location impl.

Parameters:
location - the location

GeoIpCountryServiceImpl.IpLocationImpl

public GeoIpCountryServiceImpl.IpLocationImpl(String countryCode,
                                              String countryName,
                                              String region,
                                              String city,
                                              String postalCode,
                                              float latitude,
                                              float longitude)
Instantiates a new ip location impl.

Parameters:
countryCode - the country code
countryName - the country name
region - the region
city - the city
postalCode - the postal code
latitude - the latitude
longitude - the longitude
Method Detail

getCity

public String getCity()
Description copied from interface: GeoIpCountryService.IpLocation
Gets the city.

Specified by:
getCity in interface GeoIpCountryService.IpLocation
Returns:
the city

getCountryCode

public String getCountryCode()
Description copied from interface: GeoIpCountryService.IpLocation
Gets the country code.

Specified by:
getCountryCode in interface GeoIpCountryService.IpLocation
Returns:
the country code

getCountryName

public String getCountryName()
Description copied from interface: GeoIpCountryService.IpLocation
Gets the country name.

Specified by:
getCountryName in interface GeoIpCountryService.IpLocation
Returns:
the country name

getLatitude

public float getLatitude()
Description copied from interface: GeoIpCountryService.IpLocation
Gets the latitude.

Specified by:
getLatitude in interface GeoIpCountryService.IpLocation
Returns:
the latitude

getLongitude

public float getLongitude()
Description copied from interface: GeoIpCountryService.IpLocation
Gets the longitude.

Specified by:
getLongitude in interface GeoIpCountryService.IpLocation
Returns:
the longitude

getPostalCode

public String getPostalCode()
Description copied from interface: GeoIpCountryService.IpLocation
Gets the postal code.

Specified by:
getPostalCode in interface GeoIpCountryService.IpLocation
Returns:
the postal code

getRegion

public String getRegion()
Description copied from interface: GeoIpCountryService.IpLocation
Gets the region.

Specified by:
getRegion in interface GeoIpCountryService.IpLocation
Returns:
the region

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 www.hack23.com. All Rights Reserved.