Interface IpAddressServiceLocal

    • Method Detail

      • block

        boolean block​(String address,
                      TimeInterval time)
        Blocks an IP address for the given time, if possible. When the time is null or zero, or when the address' status is fixed, the address isn't blocked.
      • geolocate

        IpGeolocation geolocate​(String address)
        Geolocate the given IP address, if possible. If not possible, returns null.
      • isAllowed

        boolean isAllowed​(String address)
        Indicates whether the given address is allowed to access
      • purgeExpiredBlocked

        long purgeExpiredBlocked()
        Removes the IP addresses with status IpAddressStatus.BLOCKED whose block have expired