|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.service.impl.GeoIpCountryServiceImpl
@Component(value="GeoIpCountryService") public class GeoIpCountryServiceImpl
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 |
---|
public GeoIpCountryServiceImpl()
Method Detail |
---|
public String getCountryCode(String ipAddress)
GeoIpCountryService
getCountryCode
in interface GeoIpCountryService
ipAddress
- the ip address
public GeoIpCountryService.IpLocation getLocation(String ipAddress)
GeoIpCountryService
getLocation
in interface GeoIpCountryService
ipAddress
- the ip address
@PostConstruct public void initLookupService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |