com.hack23.cia.service.impl
Class GeoIpCountryServiceImpl

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

@Component(value="GeoIpCountryService")
public class GeoIpCountryServiceImpl
extends Object
implements GeoIpCountryService

The Class GeoIpCountryServiceImpl.


Nested Class Summary
 class GeoIpCountryServiceImpl.IpLocationImpl
          The Class IpLocationImpl.
 
Nested classes/interfaces inherited from interface com.hack23.cia.service.api.GeoIpCountryService
GeoIpCountryService.IpLocation
 
Constructor Summary
GeoIpCountryServiceImpl()
          Instantiates a new geo ip country service impl.
 
Method Summary
 String getCountryCode(String ipAddress)
          Gets the country code.
 GeoIpCountryService.IpLocation getLocation(String ipAddress)
          Gets the location.
 void initLookupService()
          Inits the lookup service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoIpCountryServiceImpl

public GeoIpCountryServiceImpl()
Instantiates a new geo ip country service impl.

Method Detail

getCountryCode

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

Specified by:
getCountryCode in interface GeoIpCountryService
Parameters:
ipAddress - the ip address
Returns:
the country code

getLocation

public GeoIpCountryService.IpLocation getLocation(String ipAddress)
Description copied from interface: GeoIpCountryService
Gets the location.

Specified by:
getLocation in interface GeoIpCountryService
Parameters:
ipAddress - the ip address
Returns:
the location

initLookupService

@PostConstruct
public void initLookupService()
Inits the lookup service.



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