Class CheckedIP

java.lang.Object
com.lahuca.botsentry.api.data.CheckedIP

public class CheckedIP extends Object
  • Method Details

    • getIP

      public String getIP()
      Gives the IP which this class holds information of.
      Returns:
      The IP.
    • isUnknownLocation

      public boolean isUnknownLocation()
      Gives the unknown location status. If true, it is a suspicious IP.
      Returns:
      The unknown location status.
    • getIsoCode

      public String getIsoCode()

      Gives the ISO 3166-2 code of the IP. Can be null or empty if not found. For the list of available codes: https://en.wikipedia.org/wiki/ISO_3166-2

      Returns:
      The ISO 3166-2 code of the IP.
    • getContinent

      public String getContinent()
      Gives the continent of origin of the IP. Valid values are: "Europe", "Asia", "North America", "South America", "Africa", "Oceania", "Antarctica"
      Returns:
      The continent of the IP
    • getProvider

      public String getProvider()
      Retrieves the provider/host of the IP.
      Returns:
      The provider of the IP