Class CheckedIP

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContinent()
      Gives the continent of origin of the IP.
      java.lang.String getIP()
      Gives the IP which this class holds information of.
      java.lang.String getIsoCode()
      Gives the ISO 3166-2 code of the IP.
      java.lang.String getProvider()
      Retrieves the provider/host of the IP.
      boolean isUnknownLocation()
      Gives the unknown location status.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getIP

        public java.lang.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 java.lang.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 java.lang.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 java.lang.String getProvider()
        Retrieves the provider/host of the IP.
        Returns:
        The provider of the IP