pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.geolocation
Interface IGeoLocationProvider

All Superinterfaces:
LifecycleResource
All Known Implementing Classes:
GeoIPLocationProvider, NoLookupLocationProvider

public interface IGeoLocationProvider
extends LifecycleResource

an interface for IP address to GeoLocation providers.

All implementations have to be threadsafe!

Version:
$Revision: 1409 $
Author:
Thomas Weber

Method Summary
 GeoLocation lookup(java.net.InetAddress ip)
          returns the GeoLocation for the given IP address.
 GeoLocation lookup(java.lang.String ip)
          returns the GeoLocation for the given IP address.
 
Methods inherited from interface org.torweg.pulse.invocation.lifecycle.LifecycleResource
isModified, restart, shutdown, startup
 

Method Detail

lookup

GeoLocation lookup(java.lang.String ip)
returns the GeoLocation for the given IP address.

Parameters:
ip - the IP address to lookup
Returns:
the origin of the IP address, never null

lookup

GeoLocation lookup(java.net.InetAddress ip)
returns the GeoLocation for the given IP address.

Parameters:
ip - the IP address to lookup
Returns:
the origin of the IP address, never null