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
Class NoLookupLocationProvider

java.lang.Object
  extended by org.torweg.pulse.util.geolocation.NoLookupLocationProvider
All Implemented Interfaces:
LifecycleResource, IGeoLocationProvider

public final class NoLookupLocationProvider
extends java.lang.Object
implements IGeoLocationProvider

a dummy implementation, which always returns null for lookups.

Version:
$Revision: 1409 $
Author:
Thomas Weber

Constructor Summary
NoLookupLocationProvider()
          constructs a new instance.
 
Method Summary
 boolean isModified()
          returns false.
 GeoLocation lookup(java.net.InetAddress ip)
          returns an empty GeoLocation.
 GeoLocation lookup(java.lang.String ip)
          returns an empty GeoLocation.
 void restart()
          does nothing.
 void shutdown()
          does nothing.
 void startup()
          does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoLookupLocationProvider

public NoLookupLocationProvider()
constructs a new instance.

Method Detail

lookup

public GeoLocation lookup(java.lang.String ip)
returns an empty GeoLocation.

Specified by:
lookup in interface IGeoLocationProvider
Parameters:
ip - the IP-address to lookup
Returns:
an emptyGeoLocation

lookup

public GeoLocation lookup(java.net.InetAddress ip)
returns an empty GeoLocation.

Specified by:
lookup in interface IGeoLocationProvider
Parameters:
ip - the IP-address to lookup
Returns:
an empty GeoLocation

isModified

public boolean isModified()
returns false.

Specified by:
isModified in interface LifecycleResource
Returns:
false
See Also:
LifecycleResource.isModified()

restart

public void restart()
does nothing.

Specified by:
restart in interface LifecycleResource
See Also:
LifecycleResource.restart()

shutdown

public void shutdown()
does nothing.

Specified by:
shutdown in interface LifecycleResource
See Also:
LifecycleResource.shutdown()

startup

public void startup()
does nothing.

Specified by:
startup in interface LifecycleResource
See Also:
LifecycleResource.startup()