|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.geolocation.GeoIPLocationProvider
public class GeoIPLocationProvider
this is an implementation of IGeoLocationProvider using Maxmind's GeoIP
as the country provider.
| Constructor Summary | |
|---|---|
GeoIPLocationProvider()
creates a new GeoIPLocationProvider. |
|
| Method Summary | |
|---|---|
boolean |
isModified()
returns whether the resource has been modified. |
GeoLocation |
lookup(java.net.InetAddress ip)
returns the GeoLocation the given IP-address is located in. |
GeoLocation |
lookup(java.lang.String ip)
returns the GeoLocation the given IP-address is located in. |
void |
restart()
restarts the resource. |
void |
shutdown()
destroys all internal resources. |
void |
startup()
starts the resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeoIPLocationProvider()
GeoIPLocationProvider.
| Method Detail |
|---|
public final GeoLocation lookup(java.lang.String ip)
lookup in interface IGeoLocationProviderip - the IP-address to lookup
public final GeoLocation lookup(java.net.InetAddress ip)
lookup in interface IGeoLocationProviderip - the IP-address to lookup
public final boolean isModified()
isModified in interface LifecycleResourcepublic final void restart()
restart in interface LifecycleResourcepublic final void shutdown()
shutdown in interface LifecycleResourcepublic final void startup()
startup in interface LifecycleResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||