Class NoOpGeoIp

java.lang.Object
org.localify.common.geoip.NoOpGeoIp
All Implemented Interfaces:
GeoIpService

public class NoOpGeoIp extends Object implements GeoIpService
A dummy implementation of GeoIpService that does nothing. This is used when GeoIP is disabled.
  • Constructor Details

    • NoOpGeoIp

      public NoOpGeoIp()
  • Method Details

    • getDetails

      public GeoIpDetails getDetails(String ipAddress, boolean permitFallback)
      Returns null.
      Specified by:
      getDetails in interface GeoIpService
      Parameters:
      ipAddress - The IP address.
      permitFallback - Whether to permit fallback to a default location.
      Returns:
      null